27 Jan
2014
27 Jan
'14
3 p.m.
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