Ok, so there is no easy way of keeping the same marker order as in the original?...
Hm, I didn't notice any EXIF data being lost. Did you use "-copy all" as in my code...
Here's a photo to reproduce the problem. BTW, a correction to my previous statement...
Oh sure, I have no worries that the actual image content is different, think not....
Playing around with the lossless rotation capabilities of jpegtran I was surprised...
Videos from my S-E Android phone seem to crash MediaInfo. I just installed latest...