Comments (6)
This is related to #8019, because I wrote those packers in the correct order, which is actually the opposite of the unpackers.
from pillow.
Here's the names they should be based on what they actually do and the format specified in Unpack.c
.
Pillow/src/libImaging/Unpack.c
Lines 1534 to 1543 in 824db71
RGB;15 → XBGR;1555
RGB;16 → BGR;565
BGR;5 → XRGB;1555
BGR;15 → XRGB;1555
BGR;16 → RGB;565
RGB;4B → XBGR;4
RGBA;4B → ABGR;4
RGBA;15 → ARGB;1555
BGRA;15 → ABGR;1555
Unfortunately the specified format doesn't quite work because the bands in these modes aren't all the same size, so I just listed all of the sizes for those modes.
The good thing about listing out the band sizes though is that those names aren't already being used, so I could add all of them as "new" rawmodes and the old ones could be deprecated without interfering with one another.
from pillow.
There's a slightly awkward overlap in code that would change with this and with #7965.
from pillow.
Yes. This change would supersede both #7965 and #8019.
from pillow.
I have a branch for these changes, but it's based on #8026 because it affects the same test file.
from pillow.
That branch has now become #8158
from pillow.
Related Issues (20)
- image.save('my.png", quality=85) does not work HOT 3
- 'pip3.13 install pillow' gives KeyError HOT 3
- Rendering multi line text in bounding box, text bbox coordinates issue HOT 10
- Blocky alpha-artifacts, webp save, Pillow: 10.3.0 HOT 3
- Saving to apng has wrong durations HOT 4
- save() produces an unreadable TIFF HOT 1
- Misplaced polygon outline HOT 1
- Multi-segment EXIF fails to read HOT 6
- GIF only shows the first image, not the others HOT 2
- ImageGrab range error when capturing multi-screen shots and the parameter 'left' is negative HOT 1
- ImageGrab range error when capturing multi-screen shots and the parameter 'left' is negative HOT 4
- PIL.UnidentifiedImageError: cannot identify image file HOT 5
- Formats build options? HOT 1
- Incomplete discovery of libraries HOT 5
- dpkg-shlibdeps: error: cannot find library HOT 1
- Python can't find pillow HOT 12
- New uncaught exception: AttributeError: module 'logging' has no attribute 'getLogger' HOT 3
- Pillow installed via Conda on Linux errors with libtiff.so.6: undefined symbol: jpeg12_write_raw_data, version LIBJPEG_8.0 HOT 8
- ValueError PIL/ImageDraw.py line 316, in rectangle HOT 2
- pip error: "The headers or library files could not be found for jpeg"
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 pillow.