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
Great, thanks a lot! On Mon, Jan 27, 2014 at 10:00 AM, Stéfan van der Walt <stefan@sun.ac.za> wrote:
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
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
participants (2)
-
Johannes Schönberger
-
Stéfan van der Walt