The difference between rewriting a container and re-encoding an image is the difference between lossless and lossy. Most tools get this wrong.