Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use jpegtran, it can rotate jpg images losslessly.

https://linux.die.net/man/1/jpegtran



Make sure you rtfm carefully.

Many years ago I accidentally deleted all the metadata from many images that needed rotating.


> -copy comments

> Copy only comment markers. This setting copies comments from the source file but discards any other data that is inessential for image display.

> The default behavior is -copy comments.

Argh! Thanks! So also my "lossless" transformations .. weren't.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: