By sparkguitar05 on
Whenever I add an image to my site or flush images, I get the error message in watchdog "Failed generating an image from xxxxx.jpg using imagecache preset xxxxx." Imagecache does not work at all, and wherever an image is supposed to display it just displays the file name. There are no images inside the imagecache directory on the server. What is going on?
This just started happening. I have been using imagecache on other sites for months and have never run into a problem until now. Now imagecache doesn't work on any of my sites. I even tried reinstalling WAMP, which didn't change anything.
I'm using Windows XP Pro with wampserver as my local test environment.
Comments
FIXED!!!
This is what solved my problem.
http://drupal.org/node/259220#comment-863300
I didnt try the fix at the
I didnt try the fix at the above link as I did not have a WAMP set up....I actually have a LAMP set up. However I solved it by doing this:
I had set a action of resize but I ONLY specified a width (no height). The imagecache directories were being created but the resized image was not being created.
I then changed the action to Scale and only set a width (which is what I wanted) and then it worked......so maybe if you use the resize option, make sure and set a width AND height.
Resize Works - Scale Doesn't?
I had the same problem. Originally the settings worked. Now with a recent upload, they didn't until I switched from Scale to Resize.
ImageAPI 5.x-1.5
ImageCache 5.x-2.5 (2009-Aug-19)
ImageField 5.x-2.6
I needed to enable to the ImageAPI GD2 module
I see this is an old thread, but I was just getting the same error messages, and tracked it down to me not having the "ImageAPI GD2" enabled. Once I enabled that module and uploaded another test image, that image and all of my older test images all showed up.
Good hint
This fixed it for me, thanks a lot!
Worked for me as well
ImageAPI GD2 should be a required module for Imagecache.
Really enabling ImageAPI GD2
Really enabling ImageAPI GD2 fixed the issue, I am surprise why is that not a required module for Imagecache.
Imagecache requires either
Imagecache requires either gd2 or imagemagick. Unfortunately, its not possible to have conditional required modules, if they were both required, both would have to be enabled... therefore the developer needs to know enough to turn one of them on.
This worked for me too,
This worked for me too, thanks!
Enable ImageAPI GD2
I was also getting the same error. The folder was getting created in sites\default\files\imagecache folder, but there were no images in it. I wasted two days on it. In the end I came to know that All I needed to do was to enable ImageAPI GD2 module.
Thanks a lot !
Imagemagick
I had the same error, but the previous one (at /admin/reports/dblog) was 'The specified ImageMagick path /usr/bin/convert does not exist.', so for me the solution was to install the imagemagick package (even with imageapi_gd disabled).
Did you recently migrate. Make sure you have the right image API
I was led here with this issue after migrating from a server. This was a D'oh moment for me. The server had imagemagick but my Mac only had the PHP GD package. The solution for me was simple. Just turn on the correct image API module and turn off of the other one. I hope this saves somebody time.
This is one of those issues where I was led astray on a simple problem. Whenever migrating, check your status report right away to see what is wrong with the new server environment.