Metadata in PSD and TIFF files produced by Lightroom 2 bug

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
ThomasH

Re: Metadata in PSD and TIFF files produced by Lightroom 2 bug

Post by ThomasH »

please find a sample file here.

convert imtest.tif imtest.xmp works fine with imagemagick up to version. 6.3.7-1, but fails for 6.3.8 and newer. i'm using the Q16 win32 version from the binary package provided by imagemagick.org.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Metadata in PSD and TIFF files produced by Lightroom 2 bug

Post by magick »

How does it fail? We are using ImageMagick 6.4.7-6 and

convert imtest.tif imtest.xmp

produces a 22833 bytes file that looks like this:

Code: Select all

<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.1-c036 46.276720, 
Mon Feb 19 2007 22:40:08        ">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
         <tiff:ImageWidth>500</tiff:ImageWidth>
         <tiff:ImageLength>366</tiff:ImageLength>
         <tiff:BitsPerSample>
            <rdf:Seq>
               <rdf:li>8</rdf:li>
               <rdf:li>8</rdf:li>
               <rdf:li>8</rdf:li>
            </rdf:Seq>
         </tiff:BitsPerSample>
         <tiff:Compression>1</tiff:Compression>
         <tiff:PhotometricInterpretation>2</tiff:PhotometricInterpretation>
         <tiff:Orientation>1</tiff:Orientation>
         <tiff:SamplesPerPixel>3</tiff:SamplesPerPixel>
         <tiff:PlanarConfiguration>1</tiff:PlanarConfiguration>
         <tiff:XResolution>720000/10000</tiff:XResolution>
         <tiff:YResolution>720000/10000</tiff:YResolution>
         <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
         <tiff:Make>NIKON CORPORATION</tiff:Make>
ThomasH

Re: Metadata in PSD and TIFF files produced by Lightroom 2 bug

Post by ThomasH »

it produces the errors posted earlier:

Code: Select all

convert: no APP1 data is available `imtest.xmp' @ meta.c/WriteMETAImage/2318.
and creates a 0 byte file.


in addition: when trying to modify these profiles through php (using imagick extension), the php process crashes using both of the below functions:

Code: Select all

$xmp = $this->canvas->getImageProfile("xmp");
$this->canvas->removeImageProfile("xmp");
when using the function

Code: Select all

$this->canvas->getImageProfiles("*");
, no xmp-profile is returned, and the iptc profile is just 6 bytes instead of around 2k.


even while the php code might be a different problem (which i doubt, as its working with old im versions just fine), the failing of a simple "convert xx.tif yy.xmp" seems to indicate that there's a problem in this part of the win32 code of imagick.

again: all of the above, including a simple convert xx.tif yy.xmp, works up until 6.3.7, but fails/crashes on all later win32 versions ( starting 6.3.8 ) i tested, including the latest builds. i've been testing every minor 6.x.y version :( thanks to the archive at http://image_magick.veidrodis.com/image_magick/binaries/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Metadata in PSD and TIFF files produced by Lightroom 2 bug

Post by magick »

The problem is specific to Windows. We will have a fix within a day or two. Thanks.
Post Reply