Hello all,

I've been test driving Drupal on a Suse Linux 10 machine and am really starting to like it. Thanks to everyone involved with this project. I have just installed the Drupal on my live production server and can't seem to get the image.module to act right.

-----------Pertinent Info--------------
Suse Enterprise Linux 9 (2.6.5-7.97-default)
MySQL: Ver 12.22 Distrib 4.0.18, for suse-linux (i686)
PHP: 4.3.4 (cli)
Drupal: 4.6.0 (The latest as of 3-15-2006)
image.module: 4.6.0 (The latest as of 3-15-2005)

rpm -q ImageMagick returns ImageMagick-6.1.8-6

I can upload JPG's and everything works, original is there and the thumbnail is created. But when I upload a GIF I only get the large image - no thumbnail. I looked through drupalInstall/modules/image/image.module file and found on line 621 where the 'image_scale()' function is being called. I modified line 622 to show me the value of $source and $destination just to see where the file was supposed to be written to. Checked that out on a good JPG upload and see that "fileName_0.jpg" and "fileName_0.thumbnail.jpg" was created in the files/images/ directory. So it doesn't really seem to be a prob with Drupal itself but perhaps with ImageMagick? I verified that /usr/bin/convert exists. I'm not real sure about the convert part or if it's even needed - just shooting in the dark with that. I also removed the ImageMagick version I had (ver. 5 something) and installed version 6.1.8-6 today using YAST.

Thanks for any help with this.

Comments

twooten’s picture

I have just verified that I could create a thumbnail of a JPG from the command line using the following:

convert file.jpg -resize 50% file.thumbnail.jpg

Montuelle’s picture

Title: I can't create jpg's with the image.module » I can't create GIF's with ImageMagick
Montuelle’s picture

Have you tried the same command "convert file.gif ....." with the GIF file for which you have a problem?

twooten’s picture

Yes, I tried convert from the command line with the problem JPG as well as with just random other JPG's. works great from the command line.

twooten’s picture

okay, i've actually switched hosting providers (was up all night!) and have my website setup and running fine. I went with Site5.com for hosting because they have automatic Drupal install among other things. I got shell access and copied the image module where it belongs. Now the images are creating thumnails and are in the correct place on the server (/files/images/1.thumbnail.gif, 1.gif, etc) but when i create a new page with an image, then view it, the page shows up fine and the box where the thumbnail should be just blinks real quick and disappears. What the hell? Do I have some sort of curse on me or am I doing something retarded??

neclimdul’s picture

Check the source on the page. See if there isn't a problem in the html.

praseodym’s picture

Component: image.module » imagemagick toolkit
drewish’s picture

Status: Active » Closed (fixed)

i'm cleaning out the image issue queue. hopefully this has been resolved.