I need to optimize some images, but not change their name.
jpegtran -copy none -optimize image.jpg > image.jpg
However, this seems to create an filesize of 0. When i do it to a different filename, the size is still exactly the same.