Problem with ImageMagick convert and paths with frame selectors

marco atzeri marco.atzeri@gmail.com
Thu Sep 13 19:17:00 GMT 2012


On 9/13/2012 2:10 PM, Piotr Gliźniewicz wrote:
> Hi,
> I have problems with convert when used with paths including selectors
> for frames. The ImageMagick version I'm using is  6.7.6-3 2012-04-28 Q16.
>
> If I run these commands in bash:
>
> convert "/cygdrive/c/test/test.gif" -thumbnail 100x100
> "/cygdrive/c/test/test.jpg"
>
> or
>
> convert "C:/test/test.gif" -thumbnail 100x100 "/cygdrive/c/test/test.jpg"
>
> they work OK - thumbnails are generated for every frame.
>
> If I add a frame selector, as described here:
> http://www.imagemagick.org/script/command-line-processing.php (Selecting
> Frames), this version works:
>
> convert "/cygdrive/c/test/test.gif[0]" -thumbnail 100x100
> "/cygdrive/c/test/test.jpg"
>
> but this one:
>
> convert "C:/test/test.gif[0]" -thumbnail 100x100
> "/cygdrive/c/test/test.jpg"
>
> fails with:
>
> convert: must specify image size `/test/test.gif' @
> error/raw.c/ReadRAWImage/136.
> convert: missing an image filename `/cygdrive/c/test/test.jpg' @
> error/convert.c/ConvertImageCommand/3017.
>
> Is there something I'm doing wrong or is it some problem with
> ImageMagick/Cygwin failing to parse the paths at some point? I tried
> escaping paths in single quotes or escaping the the brackets, but it
> doesn't help.

use the posix form, please.

see http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
  "Using native Win32 paths

  Using native Win32 paths in Cygwin, while possible, is generally 
inadvisable."

as example with a different program:

$ ls "E:/cygwin/tmp/sombrero_1_1.png"
cygwin warning:
   MS-DOS style path detected: E:/cygwin/tmp/sombrero_1_1.png
   Preferred POSIX equivalent is: /tmp/sombrero_1_1.png
   CYGWIN environment variable option "nodosfilewarning" turns off this 
warning.
   Consult the user's guide for more details about POSIX paths:
     http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
E:/cygwin/tmp/sombrero_1_1.png

$ ls "/cygdrive/e/cygwin/tmp/sombrero_1_1.png"
/cygdrive/e/cygwin/tmp/sombrero_1_1.png


>
> Regards,
> Piotr Gliźniewicz
>

Marco




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list