diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-12 13:35:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-12 13:35:02 +0300 |
commit | 57983012913f98056315dd3fb03552f5d75258d7 (patch) | |
tree | 1f8d171316b02249f2bcb3c9b2ef2a7bfb7ab01b | |
parent | 59c59cc402d1000bf1aabef1c01a708ddee293ca (diff) |
Fix saving jpeg2k images from Python
Quality was defaulting to lowest and no codec was set.
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index f6f38977402..f993c05e198 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -1118,8 +1118,11 @@ int BKE_image_imtype_to_ftype(const char imtype, ImbFormatOptions *r_options) return IMB_FTYPE_DPX; #endif #ifdef WITH_OPENJPEG - else if (imtype == R_IMF_IMTYPE_JP2) + else if (imtype == R_IMF_IMTYPE_JP2) { + r_options->flag |= JP2_JP2; + r_options->quality = 90; return IMB_FTYPE_JP2; + } #endif else { r_options->quality = 90; |