Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-01-2012
Member
 
Join Date: Jan 2012
Posts: 37
How to determine the ppm file type?

I was surfing on the internet when I came across this file called ?PPM file? and its format! How to identify the PPM file? What exactly is this? What are its type?
Reply With Quote
  #2  
Old 05-01-2012
Member
 
Join Date: May 2011
Posts: 446
Re: How to determine the ppm file type?

The PPM stands for the “Portable Pixel Map”. Ppm file consist of sequential order of ppm images. Image contains:
.
  1. Magic number to identify the type. This number is of two characters. That is P6.
  2. It also includes whitespace .
  3. It has height and width specified as ASCII character in decimal system.
  4. Maximum color value is specified in ASCII .It is 65536.
  5. Each pixel is a combination of red, green and blue digit.
  6. Each sample is in binary format.
  7. The above mentioned format is one type. It is called normal ppm file. Another type of it is plain format.
  8. Plain image contains:
  9. There is only one image.
  10. It has the magic number as P3.
  11. Each sample is in decimal format with White-space before and after it.
  12. It should have at-least one character space between two samples.
  13. No line has more than 70 characters.
Reply With Quote
  #3  
Old 05-01-2012
Member
 
Join Date: Aug 2011
Posts: 690
Re: How to determine the ppm file type?

If you have the PPM file then to check the file type do the following:
  1. Open the PPM file.
  2. On the first line find the two character (two byte)magic number!
  3. Now if the number you have found is P3 then it is PPM ASCII file. If it is P6 then it is PPM binary file.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to determine the ppm file type?"
Thread Thread Starter Forum Replies Last Post
Linux is not able to determine proper file type association Rhesa Operating Systems 3 12-01-2011 02:20 AM
Content Type | Mime Type for Office 2010 file format and extension ramsun Tips & Tweaks 1 16-08-2010 05:25 PM
How to determine type of video-card? Claudius Monitor & Video Cards 3 13-03-2009 03:18 PM
MRxSmb - The redirector failed to determine the connection type Steve White Windows Server Help 1 14-01-2009 08:45 PM
Determine OS version and bit type from the registry RobM Vista Help 8 03-12-2008 05:19 AM


All times are GMT +5.5. The time now is 03:00 PM.