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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | video-php5.3.patch | 2.38 KB | bkat |
| video_thumbnail.patch | 2.24 KB | bkat |
Comments
Comment #1
hypertext200Comment #2
bkat commentedIgnore this. Wrong thread.
Comment #3
hypertext200