problem with thumbnail creation

everything works but the thumbnail creation. i've looked at the server logs and I don't get any errors, just when I load the gallery page the images for the thumbnails don't show up. I looked at the images folder and it looks like the actual files are not created. the albums dir is already chmodded 777.

here is my gd config from phpinfo:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

Any clue on why it's not working?


  • nevermind, i didn't chmod 777 the cache dir
  • The problem we've been having is PHP running out of memory while processing the images. 8M is the default, which isn't a lot when running manipulations on a 3 meg jpeg. I increased my Media Temple account's memory to 150M, and now have thumbs for all my photos. Put the following two lines into .htaccess

    php_value memory_limit 150M
    php_value post_max_size 150M
  • I actually upped my limits to 350M just now, after uploading a couple 5 megabyte photos.
  • hdort Member
    Just to add: I got thumbnails, but no previews. When I called the URL for a preview image, the error was:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 446 bytes) in /zenphoto/zen/i.php on line 83

    After adding the two lines to .htaccess everything is working now! :-)
Sign In or Register to comment.