{"by":"johnnyApplePRNG","descendants":42,"id":45615454,"kids":[45617170,45616998,45618377,45616872,45617491,45616792,45616816,45617330,45617788,45616809,45617653,45616664,45619032,45619382,45633669,45621867,45617392],"score":64,"text":"TL;DR: private, in-browser converter that turns pretty much any image file format into standard JPEGs. Everything runs locally. No uploads.<p>This started as a five-minute job and forty hours later...<p>I wanted to convert a HEIC without uploading it anywhere, so I wrestled Emscripten&#x2F;WebAssembly to run Google&#x27;s Jpegli inside a Web Worker. Now there&#x27;s a small UI and it handles a bunch of formats.<p>Just about the only thing it can&#x27;t decode is JXL - but there&#x27;s still some JPEG XL magic in there: XYB perceptual color quantization is enabled by default via Jpegli.<p>The upside of all this over-engineering is privacy and compatibility: images are processed entirely on your machine and never touch a server; the output is a regular JPEG that works everywhere.<p>I could have used a CLI, sure — but where&#x27;s the fun in that?<p>Would love feedback on edge cases and defaults.<p>Tested on Firefox, Chrome, and Safari.<p>Cheers!","time":1760700541,"title":"Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG","type":"story","url":"https://onlyjpg.com"}