Giter VIP home page Giter VIP logo

Comments (3)

StacktraceException avatar StacktraceException commented on June 3, 2024

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.

jonnyawsom3 avatar jonnyawsom3 commented on June 3, 2024

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.

jonsneyers avatar jonsneyers commented on June 3, 2024

This should be fixed with #2479

Feel free to reopen if the issue is still there.

from libjxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.