Thumbnailing doesn't work with youtube videos with imagemagick. I noticed that I was getting errors in the log when saving youtube videos:

The selected image handling toolkit imagemagick can not correctly process image_imagemagick_open.

I verified that image toolkit's, image.imagemagick.inc file does not define and open or close function.

The imageapi module does provide an interface, so I modified _video_image_get_thumb_file_object() to use it. This would also mean that video_image depends on imageapi. PS the original code was using image_toolkit_invoke('open', ...) to open the file and image_gd_close() to close it. You need to be consistent in how you open/close images.

Once I made that change, imagemagick was failing because it was doing
/usr/bin/convert 'http://img.youtube.com/vi/$id/2,jpg ' -q 75 ...

Note the trailing space at end of the URL. Deleting that trailing space makes convert happy.

I hope my patch is useful.

CommentFileSizeAuthor
#2 video-php5.3.patch2.38 KBbkat
video_thumbnail.patch2.24 KBbkat

Comments

hypertext200’s picture

Status: Active » Needs review
bkat’s picture

StatusFileSize
new2.38 KB

Ignore this. Wrong thread.

hypertext200’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.