resize.bat DOS script corrupts mogrify resize %

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
redkahuna
Posts: 9
Joined: 2012-03-01T00:32:56-07:00
Authentication code: 8675308

resize.bat DOS script corrupts mogrify resize %

Post by redkahuna »

In a DOS shell typing this will work:

Code: Select all

mogrify -transparent none -resize 50% -format PNG32 *
However placing the same line in a "resize.bat" file when executing corrupts the resize command and changes it into pixels instead of a %?
Is there a workaround for this?
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: resize.bat DOS script corrupts mogrify resize %

Post by el_supremo »

Have you tried 50%% ?

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: resize.bat DOS script corrupts mogrify resize %

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply