Page 1 of 1

Image which filename has unicode character does not convert

Posted: 2018-07-02T01:32:36-07:00
by jieves
I have images which filename start with an exclamation mark.
For example: !G2A01.jpg

When I try to convert such image I get following error :

Converting image: G2A01
convert: geometry does not contain image `\TEMP\FOTOS_VAN_SCANNER\sgroot\G2A01.jpg' @ warning/transform.c/ShaveImage/1626.

So, the image does not convert. In de console log, the exclamation is not shown.

I use version :

c/Program Files/ImageMagick-7.0.8-Q16/convert

Can someone please explain me how I can solve this problem ?

Re: Image which filename has unicode character does not convert

Posted: 2018-07-02T10:33:11-07:00
by fmw42
In Unix on my Mac, putting an escape character in front works. Unix escapes are \. In Windows the escape character is ^.

So this works for me.

Code: Select all

convert \!G2A01.jpg tmp.png
I do not know if the same concept will work in Windows. Each OS has its own set of reserved characters.

Why would you use an ! to start a filename, anyway?