Page 1 of 1

ImageMagick does not create thumbnails (resize)

Posted: 2009-09-22T09:20:22-07:00
by citizen
When I upload a image it uploads into the database and create three images.. tiny, preview and thumb.

They do not resize.. This seems to be a directory/permissions issue but do not know where to create it.

Asset Load (0.5ms) SELECT * FROM `assets` WHERE (`assets`.`thumbnail` = 'preview' AND `assets`.`parent_id` = 863) LIMIT 1
Exception working with image: unable to open image `/gM/gMI-cY9GHkSC1AQPBk9NN++++TI/-Tmp-/RackMultipart14177-1': No such file or directory @ blob.c/OpenBlob/2480

Re: ImageMagick does not create thumbnails (resize)

Posted: 2009-09-22T09:28:35-07:00
by Bonzo
Post your code :?

You need to CHMOD the directorys where the images are saved to 777 or 755 if your host is using one of the security options, but I can not remember the name for it ! Try 777 first if it shows an error try 755. This is done through your FTP program.

Re: ImageMagick does not create thumbnails (resize)

Posted: 2009-09-22T10:30:42-07:00
by Bonzo
How are you uploading and resizing the photos - php+command line, Imagick, magick wand etc.

What is your actual code for doing the resizing.

This `/gM/gMI-cY9GHkSC1AQPBk9NN++++TI/-Tmp-/RackMultipart14177-1' means nothing to me as I just use normal filenames e.g. image.jpg and save them into a folder. From what I see are you saving the image into the database not just the path to the image?