C:\Pictures>"magick convert -border 3024x! old.jpg new.jpg
convert: Invalid SOS parameters for sequential JPEG ‘old.jpg’ @ warning/jpeg.c/JPEGWarningHandler/398.
In this case, caused by a bug with how a Samsung phone writes jpeg files.
Checked the original file details to verify that:
ImageMagicK did process the photos. It was just warning me that it found a possible issue.
The warnings can be suppressed with the -quiet
option.