The jpeg format is not well suited for files that are encoded multiple times. Particularly if encoding settings are changed.