mozjpeg
Video-Hub-App
Our great sponsors
mozjpeg | Video-Hub-App | |
---|---|---|
19 | 65 | |
5,353 | 543 | |
0.8% | - | |
6.2 | 4.2 | |
4 months ago | 2 months ago | |
C | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mozjpeg
-
WebP is so great except it's not
[2] https://github.com/mozilla/mozjpeg
-
It's the future – you can stop using JPEGs
It would be nice if the author would add mozjpeg[1] to the comparison. At certain sizes, it can produce smaller sizes than WebP, and because it is still a jpeg, it has a much better compatibility story, which the author alluded to.
[1]https://github.com/mozilla/mozjpeg
-
Random Code Inspiration Volume 2
image-shrinker is a simple, easy to use open source tool for shrinking images. Under the hood it uses pngquant, mozjpg, SVGO, and gifsicle. You can also install these tools individually if you need to compress some images. I often use pngquantafter exporting PNGs for web projects from Figma or similar tools. I literally run it like this:
-
JPEG XL: How It Started, How It’s Going
> MozJPEG is a patch for libjpeg-turbo. Please send pull requests to libjpeg-turbo if the changes aren't specific to newly-added MozJPEG-only compression code.
https://github.com/mozilla/mozjpeg#mozilla-jpeg-encoder-proj...
-
Why there may never be a libjpeg-turbo 3.1
FWIW, Mozilla has been maintaining their own fork for quite a while now[1]
AFAIK most Linux Distros have been using libjpeg-turbo as a drop-in replacement for libjpeg, after some drama in ~2010 where libjpeg came under new management, decided to break ABI/API several times over and add incompatible, non-standard format extensions[2].
[1] https://github.com/mozilla/mozjpeg
[2] https://en.wikipedia.org/wiki/Libjpeg#History
-
Are all JPEG compression implementations the same?
No.
See https://github.com/mozilla/mozjpeg
Also, there is a fairly big problem with JPG that the ‘quality’ setting is not calibrated. That is you might look at one image and think it looks fine (which is subjective, depends on what you want to use the image for…) with a quality of 60%, but then you compress a million images at that rate, delete the originals, then you find that many of them look really awful. Not only that but there are images you could have compressed more and still been happy with the output.
If you are publishing images for the web consider using WebP which is consistently better, well supported now, and has a calibrated quality knob.
-
reduce the size of a bunch of jpg
https://github.com/mozilla/mozjpeg's cjpeg tool is the command line version of the mozjpeg library, itself a fork of libjpeg-turbo. Mozjpeg performs lossless JPEG optimization. There are plenty of others out there.
-
Lossy Image Compression with Dithering
Use the Mozilla JPEG Encoder, which implements several tricks for smaller file size / better visual quality. The result is still JPEG standard compatible that other software can decode.
-
Fighting JPEG Color Banding
Guetzli was already mentioned and roughly does what you are talking about.
MozJPEG [1] includes several quantization tables that are optimized for different contexts (see the quant-table flag and source code for specific tables[2]), and the default quantization table has been optimized to outperform the recommended quantization tables in the original JPEG spec (Annex K).
It's also worth noting that MozJPEG uses Trellis quantization [3] to help improve quality without a per-image brute force quantization table search. Basically rather than determining an optimal quantization table for the image, it minimizes rate distortion on a per-block level by tuning the quantized coefficients.
[1] https://github.com/mozilla/mozjpeg
[2] https://github.com/mozilla/mozjpeg/blob/5c6a0f0971edf1ed3cf3...
[3] https://en.wikipedia.org/wiki/Trellis_quantization
-
FFmpeg now supports JPEG XL
They're still being used. A newer, optimized JPEG encoder, mozJPEG[0], seems to use progressive encoding by default. I suspect with faster internet speeds, most images download and decode so fast that the cool 'enhance' animation doesn't happen anymore.
[0] https://github.com/mozilla/mozjpeg
Video-Hub-App
-
Ask HN: How did you earn your first $100 and first $1k online?
First $100: Thirty copies sold of Video Hub App
First $1,000: Three hundred copies sold of my Video Hub App
https://videohubapp.com/
Though I do donate $3.50 of every sale to a cost-effective charity so in theory I made no money for a while until I bumped the price to $5 / copy.
-
Jellyfin: The Free Software Media System
semi-on-topic: I created Video Hub App that is like YouTube for local files: shows you a gallery with scrub-able (preview on hover) thumbnails. But does not work streaming videos to TV / tablet - only for local consumption. Hope someone finds it useful.
https://videohubapp.com/
MIT Open Source: https://github.com/whyboris/Video-Hub-App
-
Generating Income from Open Source
I created Video Hub App which is MIT License
https://github.com/whyboris/Video-Hub-App
I also sell it for $5 and have sold just over 5,000 copies last month (5 years old app). Importantly, $3.50 of every purchase goes to a cost-effective charity, GiveWell recommended Against Malaria Foundation (see website for details).
https://videohubapp.com/
-
Python GUIs
"The problem" might be that people in this thread and others get frustrated because others have different goals than them.
Of course Electron is overkill for a single-button application. But Visual Basic is absolutely going to be a headache if you want a custom GUI.
Pick the tool that's right for the job!
I build this with Electron: https://videohubapp.com/
-
Ask HN: Most interesting tech you built for just yourself?
Simplest File Renamer - https://www.yboris.dev/renamer & https://github.com/whyboris/Simplest-File-Renamer
I wanted to be able to quickly rename files with my text editor (using keyboard commands), so this lets me do it. Plus I share the app online for free.
Video Hub App - https://videohubapp.com/ & https://github.com/whyboris/Video-Hub-App
I started it just for myself, but it ended up so good I spent several more years improving it as people kept buying it (up to almost 5,000 purchases since I started).
Also wrote a couple of dev tools for myself (sharing via NPM too) - https://www.yboris.dev/
-
I've been data hoarding for 25 years. I have a bajillion hobbies. It's hard to stay organized.
I created Video Hub App: https://videohubapp.com/ - it shows screenshots from videos as you scrub/hover across the thumbnail.
-
FFmpeg 6.0
I've been so frustrated that FFprobe functionality is not part of FFmpeg.
My app extracts screenshots from videos to create a beautiful gallery of videos. But even though I include FFmpeg already, I need a 50mb FFprobe executable to be bundled with my app just so that I can determine the width, height, duration, and fps of a video file! What is it that FFprobe does that FFmpeg couldn't do with a few extra pieces of exposed API?
https://videohubapp.com/ - https://github.com/whyboris/Video-Hub-App
https://github.com/whyboris/Video-Hub-App/blob/772b25bbd4b41...
-
Those making $500/month on side projects in 2023 – Show and tell
Created Video Hub App (that will be 5 years old next month). I sell it for $5 and $3.50 of each purchase goes to the cost-effective charity Against Malaria Foundation (See GiveWell.org for details).
It was averaging around 100 purchases per month, though it's lower over the last year as I've not had time to release new updates (moving to another state is challenging).
https://videohubapp.com/ - Think of it like YouTube for videos on your computer. Browse, search, and organize your videos
MIT Open Source: https://github.com/whyboris/Video-Hub-App
-
Ask HN: What is the most impactful thing you've ever built?
Built Video Hub App that almost 5,000 people have purchased. I was a math teacher, became a web dev 6 years ago, built this 5 years ago. Most proceeds go to charity. Very minor by comparison to others, but I'm just starting out ;)
https://videohubapp.com/ && https://github.com/whyboris/Video-Hub-App
What I did that is most impactful is that I've been giving at least 10% of my income to cost-effective charities for over 10 years now (see Giving What We Can - thousands of others do the same). This amounts to almost $100,000 given to charity which translates to thousands of people protected from malaria for many years of their lives.
-
Ask HN: What's a good business model for selling standalone software
My personal model for my commercial software: charityware - require a payment but made most proceeds go to my favorite (cost-effective) charity.
I'm getting about 100 purchases ($500/month, donating $350 of that) with my Video Hub App - https://videohubapp.com/ - which is also open source - https://github.com/whyboris/Video-Hub-App
I wrote about charityware a few years ago: https://medium.com/@whyboris/charityware-doing-good-with-pro...
What are some alternatives?
squoosh - Make images smaller using best-in-class codecs, right in the browser.
stash - An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
guetzli - Perceptual JPEG encoder
mediaChips - Manage your videos, add any metadata to them and play them.
wazero - wazero: the zero dependency WebAssembly runtime for Go developers
screenity - The free and privacy-friendly screen recorder with no limits 🎥
image-actions - A Github Action that automatically compresses JPEGs, PNGs and WebPs in Pull Requests.
ts-playground - :computer: Opensource and free resource to learn and practice TypeScript skills. Tutorials, code snippets and sample applications.
bimg - Go package for fast high-level image processing powered by libvips C library
tauri-vs-electron - A comparison of the two frameworks: is Tauri a better choice than electron in 2021?
jpegoptim - jpegoptim - utility to optimize/compress JPEG files
hydrus - A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.