LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Write image file preserving the original metadata, color profile and color space
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, November 23, 2011 4:08:33 AM(UTC)
Groups: Registered
Posts: 5
Hello,
Is it possible to load an image and then save it into a new file, preserving all image properties?
- Compression factor (JPG)
- ICC Profile
- Color space (RGB, CMYK, ...)
- IPTC/EXIF/XMP metadata?
Playing with the demo programs, I can't find how to keep the original metadata for example. Is it possible at all, and if yes - is there an example showing the thecnique?
Thanks,
#2
Posted
:
Wednesday, November 23, 2011 9:22:37 AM(UTC)
Groups: Registered
Posts: 5
What I actually do, is to perform a simple transformation like flip or rotate, and then save the image back. The problem is, that then the whole extra information like metadata, color profile information etc. is lost.
#3
Posted
:
Thursday, November 24, 2011 5:20:17 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
The details depend on which LEADTOOLS version (16.5, 17, 17.5, etc.) and programming interface (C DLL, .NET classes, etc.) you are using.
For example, if you are using LEADTOOLS .Net classes, you can enable or disable saving metadata comments and markers during file save by using the codecs.Options.Save.Comments and codecs.Options.Save.Markers properties.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#4
Posted
:
Thursday, November 24, 2011 6:11:35 AM(UTC)
Groups: Registered
Posts: 5
Perfect!
Several other questions:
- Does it apply for all image formats?
- What happens to the Exif thumbnail - will it be regenereted to affect the changed image?
- What about images with non-squire pixel ratio?
We are going to use the latest LEADTOOLS Imaging ProSDK; programming interface - C DLL. Is this 'codecs' object part of this SDK? So far we use v.11 and the docs there doen't decribe it.
Thanks!
#5
Posted
:
Sunday, November 27, 2011 5:09:09 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
We have a new function named L_TransformFile that performs a lossless transformation for certain formats. However, this function is not supported in LEADTOOLS v.11. Please download and try the free evaluation version of LEADTOOLS v17.5 from our website.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#6
Posted
:
Tuesday, November 29, 2011 9:14:09 PM(UTC)
Groups: Registered
Posts: 5
It looks like exactly what I need.
Thanks!
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Write image file preserving the original metadata, color profile and color space
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.