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!
permission problems
-
- Posts: 15
- Joined: 2009-09-07T09:33:45-07:00
- Authentication code: 8675309
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: permission problems
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!
Typically it lets you know what IM was doing at the time of the failure.
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
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).And what does @ error/blob.c/OpenBlob/2584 mean?
Typically it lets you know what IM was doing at the time of the failure.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 15
- Joined: 2009-09-07T09:33:45-07:00
- Authentication code: 8675309
Re: permission problems
I see, didn't know that. Thank you!