frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

1•FerkiHN•4h ago
I am looking for ZIP , but for non-text files, files .png/.jpg , who knows what methods to compress them ?

Comments

lesserknowndan•4h ago
PNG and JPG files are already compressed...
fjfaase•4h 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.

FerkiHN•3h ago
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.
fjfaase•3h ago
If the images are rather similar you might try to make a movie of them or an animated gif.
FerkiHN•3h ago
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.
beAbU•2h ago
So like HEVC/.h265?

Compression works because the data is structured and ordered. A folder of photos is neither. When you do structure and order your photos you have, well, a video.

Bender•2h ago
If anything could potentially get some level of compression of already compressed images I would expect lrzip [1] if you have large enough of an archive but there really isn't anything designed specifically for your use case as far as I know. So maybe put a large number of images into a .tar file and then use lrzip on that .tar file. It would need to be a very large archive. In the past I gained about 3% to 5% on large image archives using 7-zip but it was really slow and not worth it for me which says something as I am very patient.

There is potentially some compression magic that could be performed by transforming images using ImageMagick [2] or GraphicsMagick and then compressing them but that gets into the topic of potentially reducing image quality. Not compressing them with those tools but rather confining color pallets, depth and a few other variables to optimize the images to be more batch compressible for marginal gains. If you are not concerned about image quality then those tools can absolutely compress images without any trickery. resize, adding smoothing or blurring, etc...

    for Derp in *.jpg; do convert -resize 30% "$Derp" "resized-$Derp"; done
This is a topic people could debate until the end of the universe so instead give lrzip a shot if you have the time and CPU resources. If you get more than 5% please let us know. Otherwise one could use ImageMagick to batch resize, blur or other of the image files at the risk of losing image quality.

[1] - https://wiki.archlinux.org/title/Lrzip

[2] - https://imagemagick.org/index.php

Broadband and Vat – An Essential Service?

https://www.thinkbroadband.com/news/broadband-vat-an-essential-service
1•ksec•1m ago•0 comments

Restoring OVH VPS with non-profit directory of doctors

2•kundi•3m ago•0 comments

World's Narrowest – 19.6" – Driveable Car

https://www.youtube.com/watch?v=lni7U7EO0zo
1•bookofjoe•4m ago•0 comments

Microsoft Edge sets a new standard for speed and responsiveness

https://blogs.windows.com/msedgedev/2025/07/07/microsoft-edge-sets-a-new-standard-for-speed-and-responsiveness/
1•ksec•4m ago•0 comments

Is Technology Ruining Teens' Lives?

https://www.newyorker.com/magazine/2025/07/07/how-we-grow-up-understanding-adolescence-matt-richtel-book-review
1•fortran77•4m ago•0 comments

Adjacent — Related Repositories Recommender

https://github.com/gojiplus/adjacent
1•neehao•6m ago•0 comments

Show HN: Sumble – knowledge graph for GTM data – query tech stack, key projects

https://sumble.com
4•antgoldbloom•6m ago•0 comments

Underwater turbine spinning for 6 years off Scotland's coast is a breakthrough

https://apnews.com/article/tidal-energy-turbine-marine-meygen-scotland-ffff3a7082205b33b612a1417e1ec6d6
1•ortusdux•6m ago•0 comments

A big shift in training LLMs led to a capability explosion

https://arstechnica.com/ai/2025/07/how-a-big-shift-in-training-llms-led-to-a-capability-explosion/
2•rbanffy•8m ago•0 comments

The cost of our inheritance [video]

https://www.youtube.com/watch?v=Pef22g53zsg
1•arubania2•8m ago•0 comments

Performance, efficiency, and cost analysis of wafer-scale AI accelerators

https://www.sciencedirect.com/science/article/pii/S2666998625001474
1•PaulHoule•9m ago•0 comments

Zorin OS

https://zorin.com/os/
3•oldfuture•10m ago•0 comments

The Engineering Behind Fast Analytics: Columnar Storage Explained

https://outofdesk.netlify.app/blog/engineering-fast-analytics-columnar-storage-explained
1•ggauravr•11m ago•0 comments

Show HN

https://claima.page/
1•Trulle123•11m ago•0 comments

The Cognitive Divide (Debate)

https://thepointmag.substack.com/p/the-cognitive-divide
1•HR01•12m ago•0 comments

I Built a Home Kubernetes Cluster with Raspberry Pi (Step-by-Step Guide)

https://subnetsavy.com/wp-content/uploads/articles/build-k8-pi.html
1•subnetsavy•13m ago•1 comments

Science Makes the U.S. a Great Nation

https://www.scientificamerican.com/article/science-makes-the-u-s-a-great-nation/
4•baruchel•13m ago•1 comments

Actors and Their Roles for $300, HAL? HAL (2011)

https://www.nytimes.com/2011/02/09/arts/television/09nova.html
1•sandwichsphinx•14m ago•0 comments

Adding a UI to a Container Registry Is Not Simple

https://molnett.com/blog/25-07-07-container-registry-story-part-1
1•bittermandel•14m ago•0 comments

Stop forcing AI tools on your engineers

https://newsletter.manager.dev/p/stop-forcing-ai-tools-on-your-engineers
2•rbanffy•14m ago•0 comments

Typhoon Danas damages floating solar platforms off southern Taiwan

https://www.taiwannews.com.tw/news/6150281
1•ksec•14m ago•0 comments

Stop Killing Games takes action against gaming giants

https://www.pcworld.com/article/2841237/stop-killing-games-wants-to-put-pressure-on-gaming-giants.html
1•saubeidl•17m ago•0 comments

Parsm – Parse 'Em – An 'Everything' Parser, Sedder, Awkker, Grokker, Grepper

https://github.com/jac18281828/parsm
1•TheLocehiliosan•17m ago•0 comments

AkkStack: Containerized EverQuest Emulator Server Environment

https://github.com/Akkadius/akk-stack
1•kwk1•18m ago•0 comments

Office Syndrome

https://lookaway.app/blog/2025/07/08/office-syndrome-the-hidden-health-crisis-affecting-73percent-of-desk-workers/
2•_kush•19m ago•0 comments

Python: From Zero to Hero

https://pythonz2h.com/
2•blackpc•19m ago•1 comments

Show HN: Decode Your Dreams

https://github.com/Dino-Nuggies45/Dream-Interpreter
2•neon443•21m ago•0 comments

Watched 'Lion, Witch, Wardrobe' last night – centaurs looked freakishly long

https://oldbytes.space/@blakespot/114815731271978643
2•blakespot•23m ago•0 comments

Transit Gate Evolution: why tap speed matters

https://atadistance.net/2020/06/13/transit-gate-evolution-why-gate-speed-matters/
1•ksec•23m ago•0 comments

Cloudflare: We Will Get Google to Provide a Way to Block AI Overviews

https://www.seroundtable.com/cloudflare-block-google-ai-overviews-39718.html
6•freedomben•23m ago•0 comments