Page 1 of 1

permission problems

Posted: 2011-09-19T10:24:18-07:00
by codeswitch
I'm using ImageMagick 6.6.5-8 2011-02-14 Q16 on opensuse 11.4.

When using this command:

convert -resize 320x320 images/58/full/test.jpg images/58/320px/test320px.jpg

I get this error:

convert: unable to open image `images/58/320px/test320px.jpg': @ error/blob.c/OpenBlob/2584.

The folders are all within my apache htdocs, having all folders and files set to 0777. The owner is wwwrun:www.

The problem is, that imagemagick cannot create the folder 320px/, but if the folder exist, the image can be written.

So why isn't it possible to create a folder, even if all is set to 0777?

And what does @ error/blob.c/OpenBlob/2584 mean?

Hope you can help!

Re: permission problems

Posted: 2011-09-19T22:20:11-07:00
by anthony
Imagemagick is simply creating an output file.
It like just about every other application will not create sub-directories.
It is not it's job, nor should it be its job. It really is an error condition, typically indicating lack of preparation or fore-thought.

Even the normal shell will not create a sub-directory automatically!

Code: Select all

echo "data" > some-sub-directory-that-does-not-exist/file.txt
-bash: some-sub-directory-that-does-not-exist/file.txt: No such file or directory
And what does @ error/blob.c/OpenBlob/2584 mean?
That is the subroutine and code line that failed to create the file. in this case the OpenBlob() subroutine opens the file to write out a image 'blob' (a blob is a binary image file format stored in memory), whether the blob is already created, or being generated by some 'coder' module on the fly (as in this case).
Typically it lets you know what IM was doing at the time of the failure.

Re: permission problems

Posted: 2011-09-20T02:31:20-07:00
by codeswitch
I see, didn't know that. Thank you!