News for hackers. Stuff that matters.
Re:Ask HN: I am looking for compression(ZIP), but for photo(... by fjfaase on Tuesday July 08, 2025 @07:27AM (#44499016)
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.

Re:Ask HN: I am looking for compression(ZIP), but for photo(... by FerkiHN on Tuesday July 08, 2025 @08:19AM (#44499291)
I asked the wrong question, I wanted to know an efficient method for compressing many photos into a single archive to reduce the overall size, since the color bytes are repeated, maybe there is some special f compression format because the usual zip file doesn't work.
Re:Ask HN: I am looking for compression(ZIP), but for photo(... by fjfaase on Tuesday July 08, 2025 @08:42AM (#44499422)
If the images are rather similar you might try to make a movie of them or an animated gif.