I am not sure but I am trrying to add some metadata to my image files using AxImaging.ExifTagSetValueString.
It works fine if its a single page tiff.
I have a situation wherein I write metadat to a file and save it(works fine). Then when I add another page to the file (add new metadata to the new page) all the metadata is lost. The 1st page has only the X and Y resolution, but what i worte earlier is lost and also in the newly added page there's no metadata???
Is this a bug
I have set TagsSetPreserve to True for AxImaging object
Are you referring to the 5.4.3 release. I have downloaded and reinstalled this version. Metadata on the pages is restored however, I noticed another problem.
If I have a 2 page tiff and I try to append another page, it overwrites the Tiff. So I cannot have more than 2 pages now?
My code was working fine earlier(except the metadat part). Now after thi release it is not letting me create more than 2 pages as it always overwrites the 2nd page when I intend to add more pages to the Tiff???
iImageID = AxImagingTest.TiffCreateMultiPageFromFile(path) ' read the exisiting file and append new pages to this
iAddImageID = FormMain.AxImaging1.GetNativeImage 'page to be appended
Your code is wrong.
If you want to edit an existing multipage image & append page on it, you have to do something like that:
Code: Select all
nTiffID = Imaging1.TiffCreateMultiPageFromFile("input.tif") Call Imaging1.TiffAppendPageFromFile(nTiffID, "imagetoadd.tif") Call Imaging1.TiffSaveMultiPageToFile(nTiffID, "output.tif")
Who is online
Users browsing this forum: No registered users and 11 guests