Code: Select all
convert Original\0_0.png -bordercolor none -border 16 -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %%w%%,%%h%%" 0_0.png
Code: Select all
convert Original\0_0.png -bordercolor none -border 16 -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %w%,%h%" 0_0.jpg
convert: non-conforming drawing primitive definition `rectangle' @ error/draw.c/DrawImage/3401.
What to do to make this works out?
This code runs through batch, so I need escape %w% with %%w%%
ImageMagick v7 - Windows 10