I need to optimize some images, but not change their name.
jpegtran -copy none -optimize image.jpg > image.jpg
However, this seems to crea
I did it in three lines:
jpegtran -optimize image.jpg > image.jpg-opt cp image.jpg-opt image.jpg rm image.jpg-opt
Works well.
[edit:] This works only for one file at a time.