Reduce QPixmap quality
Solved
General and Desktop
-
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 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).