I am running imagemagick (CLI tool) to splice an image into 16 equal parts.
I am using it like so :
convert inputfile.jpg -crop 4x4@ +repage +adjoin -resize 256x256 output_4x4_%03d.jpg
I'd like to keep the name of the original file, inputfile.jpg, and use that as the output instead of "output_4x4..." automatically i.e without having to change it every time, so I can run this automatically on a bunch of files, and keep their original names.
Is this possible?