Create an image node using imagick toolkit works greats, but importing fails to create thumbnails and previews.

It logs "permision denied /tmp/dsc_9191.jpg"

Comments

syscrusher’s picture

Assigned: Unassigned » syscrusher

This sounds like an operating-system-level permissions problem. Make sure the web server has permissions to both read and write the JPG file and the /tmp directory containing it. Please let me know what you find out when checking this, and we'll go from there.

Scott

phatPhrog’s picture

If you have shell access login as root and run

which convert

Then use the path given for your imagemagick.

Trust me, I went through hell getting imagemagick to work because I listened to borks (no one from drupal, mind you) and finally got it figured out.

Hope this helps.

fsimo’s picture

ImageMagick works great when a post an image node.
It olny fails on importing.

syscrusher’s picture

Please do check those permissions. A common cause of this error with image_import is that the user uploads files with permissions that do not allow the web server daemon to write the uploaded file. Write permissions are necessary because the API from upload.module issues a "file move" call internally, to move the file into the Drupal-owned file repository.

Please let me know what you find when you check this, and whether or not you can solve the problem by setting the JPG file's permissions to either 666 or 777.

Syscrusher

syscrusher’s picture

Another suggestion: I'm not sure Drupal's file upload API will let you manipulate files from /tmp, because that's outside Drupal's directory tree. Try your upload into a temp directory underneath Drupal's root, e.g., /home/myaccount/public_html/tmp for example.

Scott

fsimo’s picture

The problem was the relative path.

syscrusher’s picture

Config error. Issue closed.