Im trying to create a thumbnail from a jpg image using PythonMagick:
img.quality(90)
# TODO set the sampling algo e.g. bilinear
img.sample(Geometry(scaledWid, scaledHei))
img.crop(Geometry(THUMBNAIL_WID-1, THUMBNAIL_HEI-1,cropLeft, cropTop))
img.write(destFilePath)
How do I set the sampling algo to be used? I believe right now it is using nearest neighbor which kinda looks ugly.