Comments (5)
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.
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.
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.
@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.
--skip-if-larger
should handle that well enough now.
from pngquant.
Related Issues (20)
- on windows pngquant directs output to stderr not stdout HOT 1
- Feature Request: Option to skip image if it already has 256 colors or less. HOT 2
- tar error while installing with brew on macos HOT 3
- OpenMP warning on Clang systems HOT 1
- Windows Build - Executing from current directory should include exclusion for pngquant.exe HOT 1
- Using more than 4 bits per channel with posterization HOT 3
- Is it possible to keep fully transparent (0 alpha) areas of image fully transparent? HOT 2
- Supported on Apple silicon? HOT 1
- Option to preserve color for fully transparent pixels HOT 1
- Feature Request: Option to select default output directory in PNGoo HOT 1
- not create .exe after build HOT 3
- missing malloc fail check in read_chunk_callback HOT 1
- How to add code-coverage compile flag such as -fprofile-arcs -ftest-coverage HOT 1
- Document `--map` argument HOT 2
- Homebrew Version HOT 2
- `c49cb1f` ("OOM checks") not applied to `3.x` / `main` branch
- Converting not work on Mac php without any message
- Linux and MacOS have different results HOT 1
- PNGoo doesn't have a icon
- PNGquant.py to APP
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 pngquant.