JPEG Optimizer Library on CPU and GPU
Updated:
Fastvideo JPEG Optimizer Library re-compresses existing JPEG images to a smaller file size with no visible quality loss, on both CPU and GPU. It works as a JPEG-to-JPEG pipeline (decode → optimize → re-encode) and exposes a simple API, so image delivery and storage shrink without changing the JPEG format.
Our expert knowledge in JPEG Standard and GPU programming are proved by performance benchmarks of our JPEG Codec. This is also a ground for our custom software design to solve various time-critical tasks in connection with JPEG images and corresponding services.
Our customers have been utilizing that GPU-based software for fast JPEG encoding and decoding, JPEG resize for high load web applications and they asked us to implement more optimizations which are indispensable for web solutions. These are the most demanding tasks:
- JPEG recompression to decrease file size without loosing perceived image quality
- JPEG optimization to get better user experience while loading JPEG images via slow connection
- JPEG processing on users' devices
- JPEG resize on-demand:
- to store just one source image (to cut storage costs)
- to match resolution of user's device (to exclude JPEG Resize on user's device)
- to minimize traffic
- to ensure minimum server response time
- to offer better user experience
- Implementations of JPEG Baseline, Extended, Progressive and Lossless parts of the Standard
- Other tasks related to JPEG images
The idea about image optimization is very popular and it really makes sense. As soon as JPEG is so widespread at web, we need to optimize JPEG images for web as well. By decreasing image size, we can save space for image storage, minimize traffic, improve latency, etc. There are many methods of JPEG optimization and recompression which could bring us better compression ratio while saving perceptual image quality. In our products we strive to combine all of them with the idea about better performance on multicore CPUs and on modern GPUs.
There is a great variety of image processing tasks which are connected with JPEG handling. They could be solved either on CPU or on GPU. JPEG handling comes in many shapes, and the right combination of methods depends on what you are optimizing for — storage, traffic, latency or perceptual quality. Where the standard library does not fit a particular pipeline, we build the variant that does.
A large web service processed over 400,000 JPEG images per second on our SDK.
JPEG Optimizer Library and other software from Fastvideo
What does the JPEG Optimizer library do?
- JPEG Optimizer Library (SDK for GPU/CPU on Windows/Linux) to recompress and to resize JPEG images for corporate customers: high load web services, photo stock applications, neural network training, etc.
- Standalone JPEG optimizer application - in progress
Projects under development
- JPEG optimizer SDK on CPU and GPU
- Mobile SDK on CPU for Android/IOS for image decoding and visualization on smartphones
- JPEG recompression library that runs inside your web app and optimizes images before upload
- JPEG optimizer API for web
- Online service for JPEG optimization
Fastvideo publications on the subject
- JPEG Optimization Algorithms Review
- Web resize on-the-fly on GPU
- JPEG resize on-demand: FPGA vs GPU. Which is the fastest?
- Jpeg2Jpeg Acceleration with CUDA MPS on Linux
- JPEG compress and decompress with CUDA MPS
Detailed benchmark data. Measured results are published on our benchmark pages: JPEG codec benchmarks, all benchmarks.
