GithubHelp home page GithubHelp logo

Comments (5)

kornelski avatar kornelski commented on May 21, 2024

Ask Slicy to integrate pngquant library :)

If you run pngquant on image that is already paletted it won't degrade it (except when you use --quality option to deliberately lower the quality).

It will recompress it, so md5 might change.

from pngquant.

rolftimmermans avatar rolftimmermans commented on May 21, 2024

It would actually be pretty useful to have an option like --quality that only applies when converting true colour images to palettes. Then when images with palettes are processed the number of colours is not reduced (i.e. maximum quality).

from pngquant.

kornelski avatar kornelski commented on May 21, 2024

I can't elegantly check whether file has been processed with pngquant already (I don't want to add any extra chunks to PNG files or keep database of them).

What I think would be useful is to ignore _.fs8.png and *.or8.png files when their *.png version is specified as argument. This way pngquant *.png run multiple times wouldn't create _.fs8.fs8.fs8.fs8.png etc.

@rolftimmermans that's an interesting suggestion. But what if somebody had 256-color images and wanted to reduce them further? e.g. down to 64 colors. For grayscale images or transparency masks that's reasonable optmization.

from pngquant.

rolftimmermans avatar rolftimmermans commented on May 21, 2024

@pornel That's a reasonable scenario, but I guess then you would use the regular quality option. Anyway, ultimately I the best solution is probably to keep track of which images were compressed before calling pngquant and not relying on it to guess it for you.

from pngquant.

kornelski avatar kornelski commented on May 21, 2024

--skip-if-larger should handle that well enough now.

from pngquant.

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.