Kushal Das

FOSS and life. Kushal Das talks here.


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


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

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

comments powered by Disqus