gfl + jpeg2000 + changing quality

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

stolarz
Posts: 15
Joined: Sun Mar 11, 2007 9:23 am

gfl + jpeg2000 + changing quality

Post by stolarz »

hi people, i'm using the jpeg 2000 plugin with the gfl library and i don't know how to change the quality when compressing to this format. i'm using gflSaveBitmapIntoMemory() and filling GFL_SAVE_PARAMS structure. been trying to modify the Quality member but it seems that it works for regular jpegs only. can anyone help me?
User avatar
xnview
Author of XnView
Posts: 36866
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: gfl + jpeg2000 + changing quality

Post by xnview »

stolarz wrote:hi people, i'm using the jpeg 2000 plugin with the gfl library and i don't know how to change the quality when compressing to this format. i'm using gflSaveBitmapIntoMemory() and filling GFL_SAVE_PARAMS structure. been trying to modify the Quality member but it seems that it works for regular jpegs only. can anyone help me?
Quality doesn't change anything????
Pierre.
stolarz
Posts: 15
Joined: Sun Mar 11, 2007 9:23 am

:(

Post by stolarz »

:( you are right... i tested it once again, the results differ. it is 1288438 bytes for quality 95 and 99025 bytes for quality 5. i haven't noticed that fact before cause i was using gflSaveBitmapIntoMemory. But what worries me most is why i thought Quality parameter doesn't change anything - i was compressing the picture with quality 95 and 5 and they both lasted 10 seconds...
stolarz
Posts: 15
Joined: Sun Mar 11, 2007 9:23 am

lossless

Post by stolarz »

btw, is there any lossless compression in gfl? like lossless jpeg? i see there is GFL_LZW for tiff. any other?
User avatar
xnview
Author of XnView
Posts: 36866
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: lossless

Post by xnview »

stolarz wrote:btw, is there any lossless compression in gfl? like lossless jpeg? i see there is GFL_LZW for tiff. any other?
All format like tiff, png, bmp are lossless
Pierre.