gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-user | today 10:48 AM
    Suppressing the "press any character to close this window" message in Script-Fu
  2. gimp-developer | today 10:45 AM
    Help with new default resources in 2.8
  3. gimp-docs | today 10:34 AM
    Where does the HTML documentation
  4. gimp-developer | today 09:34 AM
    html layers
  5. gimp-developer | today 08:50 AM
    Please fix Color and/or Value transfer mode

External news

Poll

Would you like to see or even participate in GFX contests hosted by gimpusers.com?

Yes, but prices for winners are important!

Yes, GFX contests are a good idea! It brings community together even if there are no prices available

No, contests are not important

Maybe, it is however not a tragedy if there are no contests. I don't care much.

See results

Stats

gimpusers.com RSS feed

GIMP Forums » For GIMP users

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

Jump to message:

  1. Use of tifftopnm and... — Jay Smith, 10 Mar 2010 05:19 AM
    1. Use of tifftopnm and... — Sven Neumann, 11 Mar 2010 08:57 AM

As a registered user, you can subscribe forum threads in order to get notified when replies are posted. Just log in at the right top of the page if you already have an account, otherwise you can register for free.

Permalink:4B971DCA.4050805@JaySmith.com
Date:10 Mar 2010 05:19 AM
From:Jay Smith
Subject: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: <present>, 5748 bytes
ICC Profile: <present>, 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
↑Back to thread overview
Permalink:1268294282.13228.5.camel@bender
Date:11 Mar 2010 08:57 AM
From:Sven Neumann
Subject: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
↑Back to thread overview

Adobe® Photoshop® is a registered trademark of Adobe Systems, Inc. Linux is a trademark of Linus Torvalds. Ubuntu and Canonical are registered trademarks of Canonical Ltd. | Clock times are shown as CET / CEST | Imprint / Privacy policy | powered by bitfire it services | sponsored by Hirners Hotel Guide