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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Invisibleman78
Posts: 1
Joined: 2011-01-09T05:27:42-07:00
Authentication code: 8675308

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

Post 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.
havegon
Posts: 2
Joined: 2012-06-08T06:50:16-07:00
Authentication code: 13

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
havegon
Posts: 2
Joined: 2012-06-08T06:50:16-07:00
Authentication code: 13

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

Post 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?
Matjaz2000
Posts: 2
Joined: 2014-10-18T16:34:09-07:00
Authentication code: 6789

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

Post by Matjaz2000 »

I had the same problem without special characters. After moving the map to root D:\ the mogrify command was succesful.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

Are you using the latest release of ImageMagick on Windows?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Matjaz2000
Posts: 2
Joined: 2014-10-18T16:34:09-07:00
Authentication code: 6789

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

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