No quality is gained by converting it to a lossless format after it has been compressed. Lossy compression, by definition, discards information that can never be recovered. This indicates that an image cannot be uncompressed once it has been compressed.