Commit: 57983012913f98056315dd3fb03552f5d75258d7
Author: Campbell Barton
Date: Tue Jul 12 20:35:02 2016 +1000
Branches: master
https://developer.blender.org/rB57983012913f98056315dd3fb03552f5d75258d7
Fix saving jpeg2k images from Python
Quality was defaulting to lowest and no codec was set.
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c
b/source/blender/blenkernel/intern/image.c
index f6f3897..f993c05 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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs