diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-17 17:29:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-17 17:29:55 +0400 |
commit | 22c6b7d174ec7158acc526821b002d9703cf4f56 (patch) | |
tree | 68ac54748cefe19c105709230be79e1deb7b6812 /source/blender/blenkernel/intern/image.c | |
parent | 30b712ed68dd72583357180741e845efb5952ad9 (diff) |
PNG Compression can now be set, writing uncompressed PNG's is significantly faster for high resolution images - 2k.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index b66b5c60916..ffd0b378f07 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -1180,6 +1180,10 @@ int BKE_write_ibuf(Scene *scene, ImBuf *ibuf, char *name, int imtype, int subimt } else if (ELEM5(imtype, R_PNG, R_FFMPEG, R_H264, R_THEORA, R_XVID)) { ibuf->ftype= PNG; + + if(imtype==R_PNG) + ibuf->ftype |= quality; /* quality is actually compression 0-100 --> 0-9 */ + } #ifdef WITH_DDS else if ((imtype==R_DDS)) { |