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 8811583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:24:03+00:00 2026-06-14T03:24:03+00:00

Maybe it’s a weird question but I’m little confused why PPM6 is smaller than

  • 0

Maybe it’s a weird question but I’m little confused why PPM6 is smaller than PPM3.
According to wiki, in PPM3, each pixel is represented as 3 bytes

P3
# The P3 means colors are in ASCII, then 3 columns and 2 rows,
# then 255 for max color, then RGB triplets
3 2
255
255   0   0     0 255   0     0   0 255
255 255   0   255 255 255     0   0   0

further they say that P6 binary format of the same image represents each color component of each pixel with one byte (thus THREE bytes per pixel). The file is smaller but the color information is not readable by humans.

I don’t understand why P6 is smaller if in both cases each pixel is represented with 3 bytes?

  • 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-06-14T03:24:05+00:00Added an answer on June 14, 2026 at 3:24 am

    Don’t confuse your source data with what actually gets written to a file.

    PPM3 is not represented by 3 bytes per pixel. Well, not in the stored form. You store them as text files. 3 digits (255 for example) stored as text is 3 bytes (a byte per character). Not 1. And I’m not even regarding the white space there.

    PPM6 is stored as binary with indeed 3 bytes per pixel. It will therefore always be smaller.

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

Sidebar

Related Questions

maybe this question is a little too general but maybe someone has experience the
Maybe this is the dumbest question ever, but I'm having a little trouble getting
Maybe the title is a little missleading but I'd like to ask you for
Maybe this is a poor question, but, I can't find a tutorial or even
Maybe it's a newbie question, but is there a method in C/C++ to prevent
Maybe this question will look simple but I'm trying to look at some member
Maybe this question should be easy, but it is not. I have read Problem
Maybe my question has been asked several times, but... I have the following code
Maybe it has been asked somewhere, but I am trying to find my question
Maybe a stupid question, but.. In my code I use the following construction at

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.