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 7197245

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:07:46+00:00 2026-05-28T21:07:46+00:00

Is there an efficient way to determine if an image is in greyscale or

  • 0

Is there an efficient way to determine if an image is in greyscale or in color? By efficient I don’t mean reading all the pixels of the image and looking for every single RGB value then.

For example, in Python there is a function inside the Imaging library called ‘getcolors’ that returns a hash of pairs { (R G B) -> counter } for the whole image and I just have to iterate over that hash looking for only one entry in color.

UPDATE:

For future readers of this post: I implemented a solution reading pixel by pixel the image (as @npinti suggested on his link) and it seems to be fast enough for me (you should take your time implementing it, won’t take you more than 10 minutes). It seems the Python implementation of the pixel by pixel way is really bad (inneficient and slow).

  • 0 0 Answers
  • 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

Sidebar

Related Questions

Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
Is there an efficient way to determine if an image is in greyscale or
I am looking for an efficient way to determine if a set is a

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.