ImageMagick does not create thumbnails (resize)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
citizen

ImageMagick does not create thumbnails (resize)

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick does not create thumbnails (resize)

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick does not create thumbnails (resize)

Post 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?
Post Reply