Page 1 of 1

Resize problem running a bat vs command window

Posted: 2011-05-26T06:20:23-07:00
by troyd1
I have 6.6.9-7. q16 dynamic - window xp

If I do: "convert -size 1650x1275 xc:"#ffffcc" -resize 50% test2.png" it work perfectly. I get an image that is 825x638.

It I create a .bat file withthe same command, it ignores the % sign and create an image that is 50x39. I tried adding a \ before the %, but that does not work either. Is this a bug or am I doing something wrong?

as a followup, I also tried putting quotes around the 50% and it did not make a difference.
convert -size 1650x1275 xc:"#ffffcc" -resize "50%" test2.png

Re: Resize problem running a bat vs command window

Posted: 2011-05-26T07:29:26-07:00
by Bonzo
Try escaping the % with another % 50%%

Re: Resize problem running a bat vs command window

Posted: 2011-05-26T07:38:59-07:00
by troyd1
OK. I figured it out. I will keep the message out here in case someone else has the same problem. percent signs in a bat file need to be escaped with another percent sign. I changed it to 20%% and it works fine.

Re: Resize problem running a bat vs command window

Posted: 2011-05-26T08:27:30-07:00
by troyd1
sorry bonzo, missed your post. Thanks for the input.