graphicsmagick won't "gm identify" resolution correctly
Benjamin Adler <[email protected]> Thu, 5 Aug 2004 14:08:04 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I have some tif-files on which "gm identify [-verbose]" shows a resolution of
0, 0 pixels/inch. Quite possibly that is only with files that have been
created with a certain version of Kodak's DCS PhotoDesk. Photoshop shows a
resolution of 72dpi on those images.
The example.tif can be downloaded at
http://politbuero.dyndns.org/example.tif.bz2. Sorry, the file is 11mb in
size, I had no smaller file showing this problem, and when I open and save it
it photoshop, the problem is gone. Can an image have a resolution of 0 dpi?
Is there any way to fix this, other than opening and saving all those files
in photoshop?
thanks!
Ben Adler
P.S: Please CC me if possible, I'm not subscribed.
gm identify -verbose example.tif[0]
TIFF Directory at offset 0x8
Subfile Type: (0 = 0x0)
Image Width: 3032 Image Length: 2008
Resolution: 0, 0 pixels/inch
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
Software: "KODAK PROFESSIONAL DCS Photo Desk TIFF Export v1.1"
Image Description: ""
Make: "Kodak"
Samples/Pixel: 3
Rows/Strip: 1
Planar Configuration: single image plane
ICC Profile: <present>, 3144 bytes
RichTIFFIPTC Data: <present>, 1024 bytes
Image: example.tif
Format: TIFF (Tagged Image File Format)
Geometry: 3032x2008
Class: DirectClass
Type: true color
Depth: 8 bits-per-pixel component
Channel Depths:
Red: 8 bits
Green: 8 bits
Blue: 8 bits
Channel Statistics:
Red:
Minimum: 0
Maximum: 255
Mean: 80.5265
Standard Deviation: 53.8055
Green:
Minimum: 0
Maximum: 255
Mean: 83.1849
Standard Deviation: 54.6367
Blue:
Minimum: 0
Maximum: 255
Mean: 61.5153
Standard Deviation: 48.3747
Colors: 404474
Filesize: 17.5m
Interlace: None
Background Color: grey100
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Compression: None
Software: KODAK PROFESSIONAL DCS Photo Desk TIFF Export v1.1
Make: Kodak
Signature: acc8e47ff46399476311aeee3f1ffa152e1f4f3a402bc62630e4e395cf2d2030
Profile-color: 3144 bytes
Tainted: False
User Time: 0.210u
Elapsed Time: 0:01
gm identify: unknown field with tag 34665 (0x8769) ignored. (example.tif).
gm -version
Version: GraphicsMagick 1.1.2 2004-06-06 Q8 http://www.GraphicsMagick.org/
Copyright: Copyright (C) 2002, 2003, 2004 GraphicsMagick Group. Additional
copyrights and licenses apply to this software, see
http://www.GraphicsMagick.org/www/Copyright.html
Host type: i686-pc-linux-gnu
Configured using the command:
./configure '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-shared'
'--with-quantum-depth=8' '--with-threads' '--with-bzlib' '--without-perl'
'--enable-lzw' 'CC=gcc' 'CFLAGS=-march=pentium3 -O3 -pipe' 'CXXFLAGS=-O2
-mcpu=i686 -pipe' 'CXX=g++' 'host_alias=i686-pc-linux-gnu'
--enable-ltdl-convenience
Final Build Parameters:
CC = gcc
CFLAGS = -march=pentium3 -O3 -pipe -Wall -pthread
CPPFLAGS = -I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -I/usr/include/libxml2
CXX = g++
CXXFLAGS = -O2 -mcpu=i686 -pipe -pthread
LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/lib
LIBS = -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lwmflite
-ldpstk -ldps -lXt -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lpthread
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com