imsave PIL quality for JPGs
Stéfan van der Walt
stefan at sun.ac.za
Mon Jan 27 10:00:23 EST 2014
On Mon, 27 Jan 2014 09:54:17 -0500, Johannes Schönberger wrote:
> Does anyone know how to set the quality of JPG images (the PIL plugin
> does not expose the "quality" parameter)? Is there another plugin that
> lets one adjust it?
A bit arcane, but here goes:
from skimage.io._plugins import freeimage_plugin
freeimage_plugin.write(array, filename, flags=freeimage_plugin.IO_FLAGS.JPEG_QUALITYSUPERB)
Stéfan
More information about the scikit-image
mailing list