No, JPEG recompression I meant is not lossy here; it is essentially taking the internal JPEG data structure and losslessly compressing them in more modern techniques. If you want there is also an open source algorithm [1] developed and used by Dropbox.
[1] https://github.com/dropbox/lepton