Kushal Das

FOSS and life. Kushal Das talks here.

kushal76uaid62oup5774umh654scnu5dwzh4u2534qxhcbi4wbab3ad.onion

Resize image

use QT :)

from qt import QImage import sys

qm = QImage(sys.argv[1]) qm = qm.scale(600,480,QImage.ScaleMin) qm.save(‘ch-’+sys.argv[1],‘JPEG’,100)


o/p is good enough

Update:

If you find the output image is not good enough, then you might want to use

qm = qm.smoothScale(600,480,QImage.ScaleMin)