Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:02:19+00:00 2026-05-18T03:02:19+00:00

Looking through PIL (and related to this question ), where can I get a

  • 0

Looking through PIL (and related to this question), where can I get a comprehensive list of Image modes? I see “RGB”, “RGBX”, my code has “BGRX” somehow even though it’s not mentioned in the PIL docs that I can see. How can I see which is which, what PIL supports, and what proper modes to select when interacting with windows API calls, for example?

Basically I know very little about image modes and would like to learn more than just what letters to put in to make it magically work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:02:21+00:00Added an answer on May 18, 2026 at 3:02 am

    There are two distinct concepts in Pillow, with confusingly similar names:

    "Modes"

    These are listed at https://pillow.readthedocs.io/en/latest/handbook/concepts.html#modes.

    Per those docs:

    The mode of an image defines the type and depth of a pixel in the image.

    This kind of "mode" is what is exposed through an Image‘s .mode attribute, can be changed through the .convert() method, and can be passed to methods that take a mode parameter. They are not the same as "raw modes".

    "Raw modes"

    These are used internally by the raw decoder, which converts uncompressed data from an image file into a format that a PIL Image object can understand. There are several times more "raw modes" than "modes", and they convey information about not only the type (colored or grayscale) and bit depth of pixels in an image, but also their layout in the file. For example, raw mode RGB;L is documented as meaning "24-bit true colour, line interleaved (first all red pixels, then all green pixels, finally all blue pixels)."

    As noted in the docs linked above (and also in the old PIL documentation), a list of raw modes can be found in Unpack.c. You’ll find the list near the end of the file.

    Unpack.c from the current main branch of Pillow: https://github.com/python-pillow/Pillow/blob/main/src/libImaging/Unpack.c

    Unpack.c from the final release of PIL: http://svn.effbot.org/public/tags/pil-1.1.7/libImaging/Unpack.c

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking through the documentation for CFDataRef I can't see anything that will compress a
Looking through the scheduler source code (2.6.34, kernel/sched.c), I can see how the pluggable
I'm looking through perl code and I see this: sub html_filter { my $text
Looking through our MMC snap-in code I can't get one concept. We have a
Looking through StackOverflow this question seems to be asked a lot, but I have
Looking through my server logs, I see that a lot of pages on my
Looking through the achievement list for Visual Studio 2010, it says that there is
Been looking through a number of other related posts relating to flowchart software. I
Looking through the Mozilla JavaScript site, I see that JavaScript 1.8 has a lot
Looking through the dom.js source from the Closure library I found this (in goog.dom.getElementsByTagNameAndClass_

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.