Comments (3)
Noteworthy for me: the output of the following command (in comparison to without the progressive flag) results in about double the size image and takes about 2x time:
.\cjxl.exe .\Test.png .\result6.jxl -p -q 100 -v --compress_boxes=1 --num_threads=16 --jpeg_reconstruction_cfl=1 --lossless_jpeg=1 --resampling=1 --ec_resampling=1 --already_downsampled -I 100 --codestream_level=10 --group_order=1
(Please do not confuse this note with the reported problem. I did try -p just on its own and with another jpg image).
Kind regards.
from libjxl.
Just for some info, the failed progressive on the jpeg is due to it trying to losslessly transcode it, which uses different techniques than normal and likely is what's breaking it.
The png getting massive and taking longer is because the jpeg transcode is almost instant and skips a lot of steps that normal encoding needs. If you try to compress it with only -d 0 -p
then it should be smaller than the png at least, a lot of those options are redundant or for jpeg only.
If you want to progressively encode the jpegs before it's fixed, then try -p -d 0 -j 0
for lossless or -p -d 1 -j 0
for lossy, bear in mind the results will probably be worse than the transcode.
Best for the experts to chime in, but hopefully this explains and helps somewhat
from libjxl.
This should be fixed with #2479
Feel free to reopen if the issue is still there.
from libjxl.
Related Issues (20)
- Can be JNG or JPEG with PNG alpha channel constructed into JPEG XL? HOT 5
- Bump requirement for highway library HOT 1
- Dart + Flutter bindings? HOT 6
- Hash-pin workflow Actions and keep them updated
- Lossless transcoding of lossless, arithmetic, hdr legacy JPEG HOT 4
- PNG tEXt chunks discarded unless XMP or EXIF HOT 5
- JxlDecoderReleaseJPEGBuffer always reports none of the buffer has been written to even when it has HOT 2
- How to build for Vite?
- JPEG Bitstream Reconstruction (`JxlEncoderAddJPEGFrame`) Failing for Some Images HOT 3
- unused variable
- No-compressed png encoder fails on Firefox HOT 6
- missing fclose HOT 1
- Failed to build libjxl without `-DJPEGXL_STATIC` on MSVC
- Add flag for controlling ICC HOT 5
- Muxing multiple JPEG into a JXL animation HOT 1
- MSYS2/MinGW, GCC 13.1: undefined references in libjpegli-static.a HOT 3
- Using "already_downsampled" Breaks Patches
- Upsampling mode should apply during normal resampling
- JPEG-XL support in Fiji/ImageJ HOT 2
- Build failure in win32 due to highway regression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libjxl.