Posted: 2006/08/01 13:37:00 |
Source
| More posts about
Uncategorized
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)