After TIF -> PSD conversion image header is corrupt
Posted: 2007-10-28T08:37:34-07:00
Hello,
This is a follow-up on the survey of IM 636 made on viewtopic.php?f=3&t=9867 , to get the individual bugs reported in separate threads.
Identify fails after TIF -> PSD conversion.
The TIF file original_TIFF_RGB.tif (download from http://javabog.dk/filer/cmd_6.3.6/)
is valid (output of identify -verbose original_TIFF_RGB.tif can be found below), but
if it is converted to PSD then if will fail to load:
$ convert original_TIFF_RGB.tif original_tif_rgb_output.psd
$ identify -verbose original_tif_rgb_output.psd
identify: Improper image header `original_tif_rgb_output.psd'.
$ convert original_tif_rgb_output.psd x.jpg
convert: Improper image header `original_tif_rgb_output.psd'.
convert: missing an image filename `x.jpg'.
This has been seen on Linux as well as Windows.
Here is output of identify -verbose original_TIFF_RGB.tif:
Image: original_TIFF_RGB.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 1024x1536+0+0
Type: TrueColor
Endianess: MSB
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 142.345 (0.558214)
Standard deviation: 49.091 (0.192514)
Green:
Min: 0 (0)
Max: 255 (1)
Mean: 137.947 (0.540967)
Standard deviation: 53.2827 (0.208952)
Blue:
Min: 0 (0)
Max: 255 (1)
Mean: 134.143 (0.526051)
Standard deviation: 59.8613 (0.23475)
Rendering intent: Undefined
Resolution: 240x240
Units: PixelsPerInch
Filesize: 4.53201mb
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 1024x1536+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: TopLeft
Comment: iptc_Description
Signature: dadd01748f9b34d22c216fa9a85c3df704c4eed429676747c6afa86c79049939
Tiff:artist: iptc_Author
Tiff iptc_Copyright Notice
Tiff:make: Canon
Tiff:model: Canon EOS 350D DIGITAL
Tiff:rows-per-strip: 2
Tiff:software: Adobe Photoshop CS2 Windows
Tiff:timestamp: 2007:10:02 15:12:03
Profile-8bim: 6290 bytes
Profile-icc: 560 bytes
Adobe RGB (1998)
Profile-iptc: 328 bytes
unknown[2,0]:
Caption[2,120]: iptc_Description
Caption Writer[2,122]: iptc_Description Writer
Headline[2,105]: iptc_Headline
Special Instructions[2,40]: asdfdsf
Byline[2,80]: iptc_Author
Byline Title[2,85]: iptc_Author Title
Credit[2,110]: dsafdsfd
Src[2,115]: dsafdsfdsf
Image Name[2,5]: iptc_Document Title
Created Date[2,55]: 20071002
City[2,90]: adsfdsf
Province State[2,95]: adsfdsaf
Country[2,101]: dsafdsf
Original Transmission Reference[2,103]: afsdsfdsf
Category[2,15]: Cat
Supplemental Category[2,20]: Iptc_Supplemental Catagories
Keyword[2,25]: iptc_Keywords
Copyright String[2,116]: iptc_Copyright Notice
Profile-xmp: 25505 bytes
Tainted: False
Version: ImageMagick 6.3.6 09/28/07 Q8 http://www.imagemagick.org
This is a follow-up on the survey of IM 636 made on viewtopic.php?f=3&t=9867 , to get the individual bugs reported in separate threads.
Identify fails after TIF -> PSD conversion.
The TIF file original_TIFF_RGB.tif (download from http://javabog.dk/filer/cmd_6.3.6/)
is valid (output of identify -verbose original_TIFF_RGB.tif can be found below), but
if it is converted to PSD then if will fail to load:
$ convert original_TIFF_RGB.tif original_tif_rgb_output.psd
$ identify -verbose original_tif_rgb_output.psd
identify: Improper image header `original_tif_rgb_output.psd'.
$ convert original_tif_rgb_output.psd x.jpg
convert: Improper image header `original_tif_rgb_output.psd'.
convert: missing an image filename `x.jpg'.
This has been seen on Linux as well as Windows.
Here is output of identify -verbose original_TIFF_RGB.tif:
Image: original_TIFF_RGB.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 1024x1536+0+0
Type: TrueColor
Endianess: MSB
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 142.345 (0.558214)
Standard deviation: 49.091 (0.192514)
Green:
Min: 0 (0)
Max: 255 (1)
Mean: 137.947 (0.540967)
Standard deviation: 53.2827 (0.208952)
Blue:
Min: 0 (0)
Max: 255 (1)
Mean: 134.143 (0.526051)
Standard deviation: 59.8613 (0.23475)
Rendering intent: Undefined
Resolution: 240x240
Units: PixelsPerInch
Filesize: 4.53201mb
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 1024x1536+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: TopLeft
Comment: iptc_Description
Signature: dadd01748f9b34d22c216fa9a85c3df704c4eed429676747c6afa86c79049939
Tiff:artist: iptc_Author
Tiff iptc_Copyright Notice
Tiff:make: Canon
Tiff:model: Canon EOS 350D DIGITAL
Tiff:rows-per-strip: 2
Tiff:software: Adobe Photoshop CS2 Windows
Tiff:timestamp: 2007:10:02 15:12:03
Profile-8bim: 6290 bytes
Profile-icc: 560 bytes
Adobe RGB (1998)
Profile-iptc: 328 bytes
unknown[2,0]:
Caption[2,120]: iptc_Description
Caption Writer[2,122]: iptc_Description Writer
Headline[2,105]: iptc_Headline
Special Instructions[2,40]: asdfdsf
Byline[2,80]: iptc_Author
Byline Title[2,85]: iptc_Author Title
Credit[2,110]: dsafdsfd
Src[2,115]: dsafdsfdsf
Image Name[2,5]: iptc_Document Title
Created Date[2,55]: 20071002
City[2,90]: adsfdsf
Province State[2,95]: adsfdsaf
Country[2,101]: dsafdsf
Original Transmission Reference[2,103]: afsdsfdsf
Category[2,15]: Cat
Supplemental Category[2,20]: Iptc_Supplemental Catagories
Keyword[2,25]: iptc_Keywords
Copyright String[2,116]: iptc_Copyright Notice
Profile-xmp: 25505 bytes
Tainted: False
Version: ImageMagick 6.3.6 09/28/07 Q8 http://www.imagemagick.org