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)
-------------------------------------------------
1 Comments:
bash$ man convert
Post a Comment
<< Home