Page 1 of 1

File size increase with embedded image annotation in Jpeg format

Posted: Sat Jul 14, 2018 5:50 pm
by gpbabu
Hello Alex,

We are using Embedded image annotation with JPeg format for both main file and the embedded image. When we save the file, file size increases significantly. For an embedded jpeg file of size 650K, total image size increases by 10MB. Is library converting Jpeg into PNG for embedded images when saving? This is reproducible with WpfAnnotation demo.

Thanks
Babu

Re: File size increase with embedded image annotation in Jpeg format

Posted: Mon Jul 16, 2018 10:10 am
by Alex
Hello Babu,

Yes, SDK converts image of the embedded image annotation to a PNG image and saves the PNG image into annotation packet.

Best regards, Alexander

Re: File size increase with embedded image annotation in Jpeg format

Posted: Thu Jul 19, 2018 10:09 am
by Alex
Hello Babu,

In version 8.6.15.1 we have added the ability to set the image encoder for serializing EmbeddedImageAnnotation. The image encoder can be set using AnnotationFormatter.DefaultImageEncoder and AnnotationFormatter.ImageEncoder properties. Please try to use version 8.6.15.1 and let me know if you will have any question or problem.

Best regards, Alexander

Re: File size increase with embedded image annotation in Jpeg format

Posted: Fri Jul 20, 2018 5:55 am
by gpbabu
Thanks Alex. I just saw 8.6.15.1 release info. We really appreciate your prompt support on this. This is very critical for us.

Regards
Babu