I haven't touched drupal for a while, but a project that I was going to use it for is ramping up and I'm looking at my drupal installation.

I'm running on BSD and ImageMagick Version: ImageMagick 5.5.7 05/22/03 Q16.

I can't seem to create thumbnails or scale my image - is this a known bug? I've checked the admin settings, and changed everything to 777 for images and subdirs, and all seems right.

Any pointers / advice? in _image_convert I echo out the cmd and I get:

/usr/local/bin/convert -scale 100 -filter QUADRATIC 'images/jack2.jpg' 'images/thumbs/jack2_th.jpg'

Which, if run from my drupal dir I get:

root@webdev01 [drupal]# /usr/local/bin/convert -scale 100 -filter QUADRATIC 'images/jack2.jpg' 'images/thumbs/jack2_th.jpg'
/usr/local/bin/convert: No decode delegate for this image format (images/jack2.jpg) [Invalid argument].

Any pointers? I'm going to keep this thread alive until I sort this out once and for all!

cheers,
neko

Comments

killes@www.drop.org’s picture

/usr/local/bin/convert: No decode delegate for this image format (images/jack2.jpg) [Invalid argument].

Look at the docs for Imagemagick. Apparently your installation is faulty.

neko’s picture

ok I reinstalled Image Magick from /usr/ports on BSD, and it all seems to be fine. I can now create thumbnails when uploading images! yay.

However, I still can't manipulate the images - can't rotate, resize etc.

neko’s picture

has anyone been able to accomplish this? Ie been able to upload an image, rotate it 90 degrees (for example) and save/publish it?

ccourtne’s picture

I just did some fairly large fixes to the image.module for the CVS/4.2 version. It should work smoother, but you will have to use the 4.2 release candidate or cvs drupal and the cvs version of image.module. The changes are pretty extensive and a backport to 4.1 might be tricky, especially with the pending 4.2 release.

neko’s picture

sounds great, however I can't upgrade to 4.2 easily, as I've made a few "special modifications myself" [/han] to drupal ;)

But I'm going to try it out on the RC and see if my problems are solved, then I can put forward a business case to migrate! :)

al’s picture

as subject

neko’s picture

I'm after confirmation from anyone using this module to be able to modify an image -- so far I haven't met anyone who has said - yes they use ImageMagick and yes, they can alter images (not just create thumbs)

cheers,
neko