#1 2014-11-01 14:40:40

Himeko
Member
Registered: 2014-08-12
Posts: 21

64-bit TJpegImage ignores CompressionQuality

There seems to be an issue when using SynGdiPlus.TJpegImage compiled with a 64-bit exe, the CompressionQuality setting is ignored:

Passing a bitmap to the jpeg with CompressionQuality in 32-bit at 100 gives a 280KB jpeg file, while in 64-bit it's 80 KB; setting the value to anything i.e 10 has the same result.

Offline

#2 2014-11-02 08:37:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: 64-bit TJpegImage ignores CompressionQuality

Perhaps the EncoderParameters structure is not exact.
You may try defining it as "record" instead of "packed record".

In fact, I suspect that most "packed record" definition in our header conversion works under Win32, but not under Win64.

Online

#3 2014-11-02 12:27:51

Himeko
Member
Registered: 2014-08-12
Posts: 21

Re: 64-bit TJpegImage ignores CompressionQuality

Yup, removing packed fixed it, thanks!

Offline

Board footer

Powered by FluxBB