Use of tifftopnm and pnmtotiff to strip images -- ?? meaning of

ForumsFor GIMP users ► Use of tifftopnm and pnmtotiff to strip images -- ?? meaning of

Sent: 2010-03-10 05:19:22 UTC (almost 2 years ago)

From: Jay Smith

Use of tifftopnm and pnmtotiff to strip images -- ?? meaning of

I hope it's okay to ask this here.

The use of tifftopnm and pnmtotiff was suggested in an earlier thread
about stripping color profiles from TIFF images.

Below I show tiffinfo before and after processing, as well as the
tifftopnm and the pnmtotiff processes.

?? On the pnmtotiff, it said:

pnmtotiff: computing colormap...
pnmtotiff: Too many colors - proceeding to write a 24-bit RGB file.
pnmtotiff: If you want an 8-bit palette file, try doing a 'ppmquant 256'.

What does this mean.... Too many colors??

And of what significance might this be to me? I was previously told
that this process clips colors but that Gimp does too so there would
really be about the same result. What I don't understand is what colors
it is getting rid of. (When I look at the before and after images, they
look the same to me.)

?? This process also got rid of the "Photoshop Data" in this old file.
I have no idea what that extra data was. Any idea what Photoshop might
have added -- I don't put comments into my images. Does it leave empty
space for comments even though you did not use comments?

The process did cut the file size from 2,850,625 to 2,844,590 which
change is LESS than the total of the ICC Profile and the Photoshop Data
that were present in the original. It got rid of them, but did not
quite reclaim all the space.

========== tiffinfo BEFORE processing

#: /q/images/jsa/source$ tiffinfo 00*tif
0001a_1st-issue_110001.tif: Warning, incorrect count for field
"MinSampleValue" (1, expecting 3); tag ignored.
0001a_1st-issue_110001.tif: Warning, incorrect count for field
"MaxSampleValue" (1, expecting 3); tag ignored.
TIFF Directory at offset 0x8 (8)
Subfile Type: (0 = 0x0)
Image Width: 877 Image Length: 1080
Resolution: 300, 300 pixels/inch
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
Samples/Pixel: 3
Rows/Strip: 1080
Planar Configuration: single image plane
Photoshop Data: , 5748 bytes
ICC Profile: , 3144 bytes

========== tifftopnm

#: /q/images/jsa/source$ tifftopnm 0001* > stuff.pnm
0001a_1st-issue_110001.tif: Warning, incorrect count for field
"MinSampleValue" (1, expecting 3); tag ignored.
0001a_1st-issue_110001.tif: Warning, incorrect count for field
"MaxSampleValue" (1, expecting 3); tag ignored.
tifftopnm: writing PPM file

=========== pnnmtotiff

#: /q/images/jsa/source$ pnmtotiff stuff.pnm > stuff-after-pnm.tif
pnmtotiff: computing colormap...
pnmtotiff: Too many colors - proceeding to write a 24-bit RGB file.
pnmtotiff: If you want an 8-bit palette file, try doing a 'ppmquant 256'.

========== tiffinfo AFTER processing

#: /q/images/jsa/source$ tiffinfo stuff*tif
TIFF Directory at offset 0x2b5b90 (2841488)
Image Width: 877 Image Length: 1080
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 3
Planar Configuration: single image plane
DocumentName: stuff.pnm
ImageDescription: converted PNM file

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply to this message

Sent: 2010-03-11 08:57:48 UTC (almost 2 years ago)

From: Sven Neumann

Use of tifftopnm and pnmtotiff to strip images -- ?? meaning of

Hi,

On Tue, 2010-03-09 at 23:19 -0500, Jay Smith wrote:

> ?? On the pnmtotiff, it said:
>
> pnmtotiff: computing colormap...
> pnmtotiff: Too many colors - proceeding to write a 24-bit RGB file.
> pnmtotiff: If you want an 8-bit palette file, try doing a 'ppmquant 256'.
>
> What does this mean.... Too many colors??

There are too many colors (more than 256) to create a file with an
indexed palette. So the tool decides to create a true-color RGB file
instead.

> The process did cut the file size from 2,850,625 to 2,844,590 which
> change is LESS than the total of the ICC Profile and the Photoshop Data
> that were present in the original. It got rid of them, but did not
> quite reclaim all the space.

If you look carefully you will notice that new information has been
added, such as a DocumentName and an ImageDescription. If you really
care about file-size, perhaps you should use compression in your TIFF
files. Uncompressed TIFF files are huge, obviously.

Sven

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply to this message

Welcome!


Lost password?

Not a member? Sign up!

Random tutorials | Latest tutorials

  1. Hot Wallpaper with Flames Hot Wallpaper with Flames 52
  2. Creating an abstract chaos explosion Creating an abstract chaos explosion 10
  3. Create a simple Grunge-Stamp! Create a simple Grunge-Stamp! 7
  4. Ashes to ashes, dust to dust. Dissolve text into particles Ashes to ashes, dust to dust. Dissolve text into particles 3

Latest comments

2.6.12 crashes on startup in windows xp. 2.6.11 works fine. (2 days ago in Last stable 2.6 release: 2.6.12 has arrived)

Thank you! You really helped! The tutorial went great for me! Tha... (5 days ago in [AVATAR] Become a real Na'Vi using GIMP!)

maybe you still selected a channel or so? explicitly click a layer ... (5 days ago in Create cool rifts with translucent lights!)

Poll

Is GIMP an adequate application for you to create printed graphics like flyers, advertisments etc?

View results

Latest forum activities

Your Ad Here

facts & numbers

gimpusers.com RSS feed

48 identi.ca followers
749 Twitter followers

powered by bitfire it services