With the use of fx[] in argument:
Code: Select all
magick Original\0_0.png -bordercolor none -border 16 -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %%[fx:w-1],%%[fx:h-1]" 0_0.jpg
Code: Select all
magick Original\0_0.png -bordercolor none -border 16 -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %%[fx:w-1],%%[fx:h-1]" 0_0.jpg