Page 1 of 1

Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBlob

Posted: 2011-01-09T05:38:52-07:00
by Invisibleman78
If I try to mogrify a *.jpg on Win7 with some non-standard-characters in the filename*, I get the error:
Magick: unable to open image `Galathea (?? ???????).jpg': Invalid argument @ error/blob.c/OpenBlob/2584.
The filename in this example is: Galathea (Из Глубины).jpg
The command to mogrify this file is:

Code: Select all

"C:\Program Files\Tools\Grafik\ImageMagick-6.6.6-Q16\mogrify" -geometry 300x -quality 100 "Galathea (?? ???????).jpg"
I can't cut&paste the filename "Galathea (Из Глубины).jpg" to the commandline, it will be displayed as "Galathea (?? ???????).jpg"

If I try to mogrify this *.jpg with the shortname (with the help of a FOR-Loop and DIR /x)

Code: Select all

"C:\Program Files\Tools\Grafik\ImageMagick-6.6.6-Q16\mogrify" -geometry 300x -quality 100 "GALATH~1.JPG"
this *.jpg-file will be DELETED! :shock:

How can I mogrify files with special characters in the filename without errors?

*Other files with standard characters works fine.

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBl

Posted: 2012-06-08T07:34:32-07:00
by havegon
Hi, there!

I'm having the very same problem while using the mogrify command. I have a bunch of JPG files inside a directory that I need to generate a thumbnail for each one. Some file names have latin characters (e.g.: AG 0321-01-0 - TRANSCRIÇÃO 36.274 1.jpg).

I wonder if there is a parameter or some kind of mogrify native feature (without having to use an external program) that helps me with a solution.

Kind regards,

Harold.

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBl

Posted: 2012-06-08T09:15:28-07:00
by magick
We could convert / mogrify both of the non-ascii filenames posted in this thread. We're using ImageMagick 6.7.6-6, the latest release. If you continue to have problems with filenames with IM 6.7.6-6, let us know and we will investigate further.

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBl

Posted: 2012-06-20T09:59:53-07:00
by havegon
Hi, magick! Thank you for the replay!

Unfortunately, I tried to convert them with the latest version of ImageMagick portable (ImageMagick-6.7.7-7-Q16-windows.zip) and had the same error messages.

Any other ideas?

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBl

Posted: 2014-10-18T16:39:24-07:00
by Matjaz2000
I had the same problem without special characters. After moving the map to root D:\ the mogrify command was succesful.

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBl

Posted: 2014-10-19T03:42:32-07:00
by dlemstra
Are you using the latest release of ImageMagick on Windows?

Re: Win7 / 6.6.6-Q16: Invalid argument @ error/blob.c/OpenBlob

Posted: 2015-04-25T02:01:06-07:00
by Matjaz2000
Here is another idea how to run from name.bat or name.cmd:
Instead of using:
mogrify -quality 80 -resize "800x800>" *.jpg
you can use
for %%I in (*.jpg) do call mogrify -quality 80 -resize "800x800>" "%%I"
The file name %%I must be in " "