What re-encoding a JPG file actually changes
A JPG file is decoded and written again as a baseline JPEG with a fixed quality, so the block structure is rebuilt from scratch. Progressive markers, the embedded thumbnail and the density record are not carried over. Nothing is promised on size: a file already encoded at a lower quality can come out the same or larger.

