Compressing a JPEG usually means a trade. You decode the photo to pixels, encode it again at a lower quality, and accept that some fine detail is gone. For product shots, portfolios and archives, that trade is not always acceptable. Lossless JPEG recompression removes it.
Why re-encoding a JPEG loses detail
A JPEG file does not store pixels directly. It stores the image as blocks of numbers (DCT coefficients) that describe patterns of light and color. When an optimizer re-encodes a JPEG, it turns those numbers back into pixels, then compresses the pixels again. Every round of that is lossy, even at high quality.
What lossless recompression does instead
JPEG XL can take a JPEG's coefficients as they are and store them more efficiently, without ever turning them into pixels. The result:
- The image is unchanged. A JPEG XL viewer shows exactly the pixels the JPEG had.
- The JPEG can be rebuilt. The JPEG XL file carries what is needed to reconstruct the JPEG exactly.
- Nothing is re-compressed. There is no quality setting to choose, because no detail is dropped.
One thing does change: smallPict removes camera metadata, GPS location, color profile data and comments from every image it produces, for privacy. The JPEG you can rebuild is that cleaned file.
When smallPict uses it
smallPict uses lossless recompression when all of these are true:
- the source is a JPEG,
- the output format is JPEG XL,
- the compression mode is lossless (called Pixel-perfect in the WordPress plugin),
- the image is not resized and needs no rotation.
In WordPress, a photo wider than the plugin's Largest image size setting (1600 px by default) is scaled down first, so set that to Keep the original size if you want lossless recompression for large photos. If the image has to be resized or rotated, its pixels change anyway. smallPict then makes a regular lossless JPEG XL of the resized image instead. A JPEG the encoder cannot read this way, for example a CMYK file, gets the same regular lossless encode.
Where you can use it
- WordPress Pro and Business: choose Pixel-perfect compression and turn on JPEG XL (full-size images only, beta). Full-size JPEG photos then get a lossless JPEG XL copy next to their WebP. Browsers that cannot show JPEG XL get the WebP. Read What Is JPEG XL for how that works.
- Every API plan: send
"format": "jxl"with"mode": "lossless"for a JPEG source. See the Image Optimization Endpoint.
On WordPress Free and Starter, lossless mode is not included, and the setting shows as locked with an upgrade note.
Who it is for
Lossless recompression fits anyone who cannot accept visible changes but still wants modern files: photographers, online stores with detailed product shots, and sites that keep originals for the record. If small file size matters more than exact pixels, the default lossy mode remains the better choice.
See the pricing page to compare plans.