[Mono-bugs] [Bug 590503] New: GdipCloneImage does not clone PropertyItem.value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 23 10:42:27 EDT 2010



           Summary: GdipCloneImage does not clone PropertyItem.value
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matthew at cowarthill.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=350050)
 --> (http://bugzilla.novell.com/attachment.cgi?id=350050)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.3
(KHTML, like Gecko) Chrome/5.0.360.0 Safari/533.3

When calling GdipCloneImage to clone one GpBitmap to another, the
PropertyItem's are supposed to be duplicated along with it to maintain data
like compression and TIFF properties. The PropertyItem's are duplicated, but
their values are not.

Reproducible: Always

Steps to Reproduce:
Use GdipCloneImage to copy data from one TIFF file to another. To do this you
can compile and run the attached program test-clone like so:

/test-clone input.tiff output.tiff
Actual Results:  
If you clone the attached file input.tiff and use something like `tiffinfo` to
compare the properties, you'll notice that the properties are there in the
clone, but the values are totally invalid.

Expected Results:  
tiffinfo should show duplicate data, but it won't. At the very least the
Software and DateTime properties should be the same.

GdipCloneImage will work with the attached patch for most properties, but
another of them are overridden by the codec's directly. For instance,
tiffcodec.c ignores compression and sets it to none no matter what. For now
this is fine, and the patch does not affect this behavior.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list