I need to work with the "path information" which Photoshop saves into JPEG-file. Photoshop saves the paths in an image resource block. In "Adobe Photoshop File Formats Specification" (
http://www.adobe.com/devnet-apps/photos ... rmatashtml) I found, that image resource ID of path information is 2000-2997.
I have read the information about the first path (acProperty contains information in XML format):
Code: Select all
acProperty := MagickGetImageProperty(mWand, '8BIM:2000,2997')
I have read the information on the second path:
Code: Select all
acProperty := MagickGetImageProperty(mWand, '8BIM:2000,2997:#2')
I changed the acProperty. Such a function call returns 1 (TRUE):
Code: Select all
MagickSetImageProperty(mWand, '8BIM:2000,2997:#1', acProperty)
MagickSetImageProperty(mWand, '8BIM:2000,2997', acProperty)
MagickSetImageProperty(mWand, '8BIM:2000,2997:#2', nil)
MagickDeleteImageProperty(mWand, '8BIM:2000,2997')
Attempts to use MagickSetImageProperty/MagickDeleteImageProperty not cause an error, but after saving the image to disk it paths parameters does not changed.
In the table at the bottom of the this page (
http://www.imagemagick.org/script/formats.php) is specified that 8BIM supported in
READ-WRITE mode.
ImageMagick-6.8.8-Q16 not support write mode for paths information? Or am I doing something wrong?