Reduce QPixmap quality
-
I am using https://github.com/ginsweater/gif-h to insert QPixmap to gif.
https://github.com/sonichy/HTYScreenRecorder
The GIF size is too big, is there a way to reduce QPixmap quality, but no need to save to jpg. -
I am using https://github.com/ginsweater/gif-h to insert QPixmap to gif.
https://github.com/sonichy/HTYScreenRecorder
The GIF size is too big, is there a way to reduce QPixmap quality, but no need to save to jpg.@sonichy Your problem is not QPixmap as it does not have "quality" - it just contains pixel data. The problem is probably that you don't compress the GIF.
Do you use GifWriteLzwImage to write the GIF file, it should compress it then. -
@sonichy Your problem is not QPixmap as it does not have "quality" - it just contains pixel data. The problem is probably that you don't compress the GIF.
Do you use GifWriteLzwImage to write the GIF file, it should compress it then. -
@jsulm GifWriteLzwImage is already called in the function of GifWriteFrame !
https://github.com/ginsweater/gif-h/blob/master/gif.h#L813@sonichy Well, then I don't know. Maybe you can specify how strong the compression should be using this library? Also you could reduce the picture size (https://doc.qt.io/qt-5/qpixmap.html#scaled).