I have a clean install of Drupal 4.6 running, and have image.module installed etc. I go to create content, image, and fill out the info. When I submit it, everything seems to be ok, no errors generate on watchdog, BUT it says unable to create thumbnail image. I have searched in vain on here for a solution!

I am using Imagemagick, as I could not get GD2 to work.

Any help is appreciated

Comments

fester’s picture

I also have a clean install of Drupal 4.6. When I try to upload an image into a gallery, I don't get any errors, but the thumbnail never shows up. It lists the new image, but I can't actually see anything. I can see that an image, thumbnail and original have been created in the "images" directory, but when I try to browse directly to it, I get a permissions error:
"Forbidden
You don't have permission to access /drupal/files/images/test.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I've tried changing permissions to 777, but that has no effect. I'm totally confused what's going on. :(

ghavo’s picture

When you submit a new image does it actually create the thumbnail and preview jpgs? If so I posted my workaround on this thread

http://drupal.org/node/5730

Let me know if that fixed it...

******cut and pasted from the article above ******

I had the same problem....
ghavo - May 5, 2005 - 10:01
I had the same problem...

I'm using
-Drupal 4.6
-Image 4.6
-GD2 Toolkit..

Eveytime I would create an Image page it would, in preview mode get that image with a red X in it. The pictures are uploaded (I looked in the path) but the browser can't show it.... I followed the link (I right clicked on the red X and selected properties) It was trying to use clean URLs. It will not work if you are NOT using CLEAN URLs. After fiddling around I found that if you go to

-Admin

-Settings

-File system settings section
-Download method:

select Private - files are transferred by Drupal it worked perfectly... I guess because you can't access the file using CLEAN URLs you can't access directly. Good luck!!!

Gha-VO
Keep the ROCK in you alive!!!!

stevryn’s picture

No thumbnail or preview is created. There is no error in watchdog, Apache log shows this:
convert.exe: no decode delegate for this image format `files/images/temp/untitled_0.bmp'.

SJKLEIN’s picture

stevek.. Just wanted to thank you I had the same problem and finally spent a couple of hours reading the Forum. Problem solved with the private thing.

"You ROCK"

Steve

tangibre’s picture

I have the same problem. "Unable to create thumbnail".

I am using GD2

The built-in GD2 toolkit is installed and working properly

But in the log it states

imagecreatetruecolor(): requires GD 2.0 or later in /kunder/nytteprodukter.no/www/drupal/includes/image.inc on line 221.

and

imagecopyresampled(): requires GD 2.0 or later in /kunder/nytteprodukter.no/www/drupal/includes/image.inc on line 222.

I have played round with chmod, but without any luck. Could the image module use a wrong path for GD2?

stevryn’s picture

I couldnt get gd2 to work period, had better luck with ImageMagick..except thumbnails

coloma’s picture

This may not be the same problem causing your error messages but I imagine I'm not the only one who's run into it...

image.module worked fine when I uploaded a JPEG but I got the "Unable to create thumbnail" error when I tried to upload a GIF ... changing permissions didn't help

GD2 doesn't like to resize GIFs ...

so I switched to ImageMagick and both JPEG and GIF are now working fine

stevryn’s picture

Im trying to determine if I even have the correct files to use ImageMagick instead of GD2. Has anyone found any details regarding image.module & ImageMagick? There are multiple files on their site.

coloma’s picture

I found good instructions for using ImageMagick with image.module at http://drupal.org/node/19577

If using MacOS X, see also http://drupal.org/node/14967

conann’s picture

I have only a little experience with the 4.6 version of the image.module as my site is still 4.5.2 but on sites were I have installed 4.6 the album.module and img_assist.module have been partners to the image module. These will give you the desired effect of thumbnail posts.
My understanding of content/image is that it creates and image not image/thumbnail.

Bèr Kessels’s picture

This is most probably a permission problem on your server.. search drupal for image upload permission issues.

---

[Bèr Kessels | Drupal services www.webschuur.com]

stevryn’s picture

This is running only on my machine currently, so it is wide open. I have Apache on a Win2k machine. 4.6 Drupal, latest image.module. Forever, I couldnt get it to produce thumbnails, now somewhere in my fiddling I have found it created one, BUT it said it didnt, and they dont show anywhere.

Part of my frustration is everyone says "Use this or use that" but there is no definitive specific details, on which version or file of ImageMagick to use or gd2 or whatever. A good portion of us are not nearly as up on all this, we are newbies. Isnt there some way to create a page that says:

For Windows use ImageMagick version xxxxx. Perhaps even with a link
and same for GD2? I have seen so many postings of people having the same issue with images again and again and most of the time the "fixes" are so over the top tech talk, we get lost halfway through.

Im still trying to figure out what I need to do to make this work...There are quite a few files listed on the ImageMagick site... All it says on here is use the ImageMagick Toolkit, well I cant find anything that says toolkit. Do I have to install the full program, which file do I use static or dll? Latest version?

I dont mean to sound like I am ranting but this is the most trouble I have had so far with a module, trying to find answers.

jfister’s picture

I hate when people come up with a solution and don't post it to the other folks having problems so...

I also had a problem with Image module on Drupal 4.6 saying "Unable to create thumbnail image..." and so on. I changed permissions -- didn't help. I upped the memory in php.ini -- didn't help. I already had libgd properly installed. I dug into the source code and found that the problem was occurring on the resize method. Finally, looking at the source code led me to this method which was failing -- imagecreatefromjpeg.

http://us2.php.net/function.imagecreatefromjpeg

I recompiled PHP using the options "--with-jpeg-dir", "--with-png-dir", "--with-tiff-dir". Then I restarted Apache. Voila -- no more problems with the Image module! Best of luck to everyone!