Working with tags on Multipage Tiff
Working with tags on Multipage Tiff
Hi,
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
Thanks
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
Thanks
Re: Working with tags on Multipage Tiff
Hi,
We solved a bug with metadata support for multipage tiff image.
Could you download the last edition & try again ?
Best regards,
Loïc
We solved a bug with metadata support for multipage tiff image.
Could you download the last edition & try again ?
Best regards,
Loïc
Re: Working with tags on Multipage Tiff
Hi,
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
AxImagingTest.TiffSaveAsNativeMultiPage(path)
iAddImageID = FormMain.AxImaging1.GetNativeImage 'page to be appended
AxImagingTest.TagsSetPreserve(True)
AxImagingTest.TiffAddToNativeMultiPage(iAddImageID)
AxImagingTest.CloseImage(iAddImageID)
AxImagingTest.TiffCloseNativeMultiPage()
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
AxImagingTest.TiffSaveAsNativeMultiPage(path)
iAddImageID = FormMain.AxImaging1.GetNativeImage 'page to be appended
AxImagingTest.TagsSetPreserve(True)
AxImagingTest.TiffAddToNativeMultiPage(iAddImageID)
AxImagingTest.CloseImage(iAddImageID)
AxImagingTest.TiffCloseNativeMultiPage()
Re: Working with tags on Multipage Tiff
Hi,
Your code is wrong.
If you want to edit an existing multipage image & append page on it, you have to do something like that:
Loïc
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")
Re: Working with tags on Multipage Tiff
Thanks once again
Who is online
Users browsing this forum: No registered users and 1 guest