Page 1 of 1

Image compression - JPEG quality

Posted: Thu Jun 29, 2017 1:29 pm
by RichHolliday
Hi,

We are attempting to apply JPEG compression via an encoding filter, using the example method here:

https://sdkhelp.pdf-xchange.com/vie ... nfo#Sample

As the example above is for the editor, we have adapted it for use with the Core SDK.

When creating our test document that contains graphics, what we are finding is that the "Quality" parameter is having no effect on the file size. It is exactly the same size whether we use "low" or "high" quality. I would be most grateful if someone could supply some example code that is for the Core SDK to clarify how this is done.

Regards,
Richard

Re: Image compression - JPEG quality

Posted: Thu Jun 29, 2017 1:41 pm
by Sasha - Tracker Dev Team
Hello Richard,

How are you using the IPXS_EncodeFiltersArray exactly?
If you are using the https://sdkhelp.pdf-xchange.com/vie ... StreamType method then you should call it before adding the images of the specified type. This won't convert images, that already exist in the document.

Cheers,
Alex