Comments (4)
auto r = palette->entries[i].b;
note r != b
from libimagequant.
auto r = palette->entries[i].b;
note r != b
yes, but only by writing like this can I get the correct output file.
i have send email about the problem detail
from libimagequant.
In that case you have a BGR <> RGB mixup elsewhere. I'm 100% sure the library handles color order correctly.
Note that pixels must be in the RGBA order. There are operating systems and graphics frameworks which operate with ABGR or ARGB and other such combinations. Make sure you pass RGBA data in.
from libimagequant.
I understand, thank you
from libimagequant.
Related Issues (20)
- smarter color reducer? (considering visual similarity) HOT 2
- Duplicate transparency palette entry generated since v4.0.0 with some inputs HOT 1
- 2.18.0: build fails on linking HOT 5
- faster in c++ than in rust? HOT 1
- Could libimagequant be extended to more than 256 colours? HOT 1
- Please don't hide Cargo.lock HOT 2
- imagequant-sys: Makefile problem HOT 3
- keep alpha channel HOT 1
- libimagequant_sys: missing shared library HOT 5
- Generate c static library problem HOT 5
- Problems from Java developers
- Different results on ppc64le HOT 7
- Latest version doesn't appear to be compiled HOT 3
- Test failure on big-endian HOT 2
- Process images with premultiplied alpha HOT 2
- Some question about LISENCE. HOT 1
- can not get the target .a file by use cargo build HOT 6
- Big resolution images crash the library
- latest version of libimagequant seems not be compiled on Windows HOT 3
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 libimagequant.