Ask HN: I am looking for compression(ZIP), but for photo(.png/.jpg)?

1 FerkiHN 2 7/8/2025, 11:02:43 AM
I am looking for ZIP , but for non-text files, files .png/.jpg , who knows what methods to compress them ?

Comments (2)

lesserknowndan · 41m ago
PNG and JPG files are already compressed...
fjfaase · 32m ago
Indeed, a PNG file is a kind of ZIP file specifically tailored for images that is lossless in the sense that no information of the original image is lost.

A JPG file is a kind of ZIP that leaves out some information from the original image to even achieve higher compression rates.

Apply another compression algorithm to already compressed files, usually does not result in any reduction of the file size and likely even could make the file larger. As fun fact is that ZIP, when fed with absolutely random data, will result in a larger file, namely by adding some information to the file to tell that it could not be compressed any further.