Save annotations without recoding image?

Discussions about annotation support.
Post Reply
floele
Posts: 11
Joined: Sun Feb 13, 2011 8:55 pm

Save annotations without recoding image?

Post by floele » Thu Oct 29, 2015 2:15 pm

Hi,

is it possible to save annotations made with the GdViewer control to an existing image (as meta data) without re-encoding the image to avoid quality loss for JEPG files?

Best regards,
Florian

User avatar
Loïc
Site Admin
Posts: 5530
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Save annotations without recoding image?

Post by Loïc » Mon Nov 02, 2015 5:43 pm

Hello Florian,

It is possible to save the annotations content into a file. But GdPicture do not offer a way to modify metadata of a document without subsequent loading and saving steps.

Please let me know if you need further information.

With best regards,

Loïc

floele
Posts: 11
Joined: Sun Feb 13, 2011 8:55 pm

Re: Save annotations without recoding image?

Post by floele » Fri Dec 04, 2015 3:26 pm

How do you suggest to save annotations to a JPEG image then? You can hardly expect me to save them in a separate file, because your SDK advertises the ability to save annotations to images. It is not acceptable that the image quality deteriorates everytime an annotation is modified.

User avatar
Loïc
Site Admin
Posts: 5530
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Save annotations without recoding image?

Post by Loïc » Fri Dec 04, 2015 3:35 pm

As I previously said, if you want to modify the metadata stored into a bitmap file you have to open the bitmap, modify the metadata then save the bitmap. There is no other way. In the compression scheme if the bitmap is lossy, I can only suggest to save the metadata as a separated file or blob.

Kind regards,

Loïc

floele
Posts: 11
Joined: Sun Feb 13, 2011 8:55 pm

Re: Save annotations without recoding image?

Post by floele » Fri Dec 04, 2015 4:26 pm

The meta data is just some XML at the beginning of the file. Why would you not be able to only modify the XML without touching the image data?

User avatar
Loïc
Site Admin
Posts: 5530
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Save annotations without recoding image?

Post by Loïc » Fri Dec 04, 2015 4:48 pm

This is really not so easy to accomplish. GdPicture 11 do not support that yet but this feature is into our back log and will be probably considered soon.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest