Giter VIP home page Giter VIP logo

Comments (4)

Lymphatus avatar Lymphatus commented on May 29, 2024

I want to point out something I was saying a few months ago, when Caesium did not have conversion all together (taken from #80 (comment)):

Doing conversions in the right way would totally be a whole new project by itself. It's quite hard to do.

As you can see in #196 there're many many options you can set while converting from JPEG to WebP, many of them are quite advanced. Caesium conversion feature is very basic and generic, trying to appeal to most of the users. Unfortunately, I don't have the knowledge and/or resources to improve that aspect right now. This may change in the future.

I suggest you to use a more advanced tool to convert your images to WebP and then use Caesium to adjust compression, if you need it.

from caesium-image-compressor.

XeonG avatar XeonG commented on May 29, 2024

I don't get it.. would have thought transfering the metadata over to another format would just be a no brainer option, given the only reason someone would do any of this is just to get a better quality/size ratio and not lose information from the image.... like what many other options are people wanting.. I guess could advertise a new feature it supports in that it will wipe the metadata on conversion.

I guess if it is just a compressor.. what other stuff would you recommend that does everything?

from caesium-image-compressor.

Lymphatus avatar Lymphatus commented on May 29, 2024

I think there's a lot of confusion related to the word "compression". If we stick to the literal meaning, Caesium should never change the file format. By going to JPG to WebP, you might get a smaller image, but you are not compressing, you are converting. As a side effect, the image is smaller because the target format is better optimized.

Let's get a little technical here: Caesium performs conversion by using the default QImage class shipped with Qt6, which is very handy but also very basic. If I want to allow metadata to be passed from one format to another, I would just need to stop using QImage and start doing it by myself, using specific libraries for each format. Don't get me wrong, it's absolutely possible to do so, but:

Unfortunately, I don't have the knowledge and/or resources to improve that aspect right now

Based on the data I have, only around 3% of Caesium compression are to WebP. I need to prioritize other things first before perfecting something that is quite niche.

from caesium-image-compressor.

Saijin-Naib avatar Saijin-Naib commented on May 29, 2024

@XeonG, I've not found a tool to do it all yet, but I'm hoping to open a PR with Curtail by Huluti with my preferred WebP encoding options once they get back to me.

from caesium-image-compressor.

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.