diff options
author | Quentin Wenger <matpi@protonmail.ch> | 2016-01-14 13:02:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 13:33:46 +0300 |
commit | 370a8ee7417f37bbedf814582d9f14e855da0c3e (patch) | |
tree | 6419c5126e0d3b62b1ffc3fa7443a2a9eadfb372 /source/blender/editors/space_image/image_buttons.c | |
parent | 1f273cec00feddb1065847e3c8163cdcf8a6d89a (diff) |
Add compression modes for TIFF images
This patch aims at providing multiple compression modes for TIFF output,
particularly uncompressed mode.
At this moment have None, Deflate, LZW and Pack Bits modes been integrated,
mimicking The GIMP export modes (except JPEG mode, which returned encoding
errors).
More modes could be added if needed.
Default remains Deflate.
Reviewers: campbellbarton, mont29, sergey
Differential Revision: https://developer.blender.org/D1709
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r-- | source/blender/editors/space_image/image_buttons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c index ffd801d2146..4c124db359e 100644 --- a/source/blender/editors/space_image/image_buttons.c +++ b/source/blender/editors/space_image/image_buttons.c @@ -1126,6 +1126,10 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr, int color_man #endif } + if (imf->imtype == R_IMF_IMTYPE_TIFF) { + uiItemR(col, imfptr, "tiff_codec", 0, NULL, ICON_NONE); + } + /* color management */ if (color_management && (!BKE_imtype_requires_linear_float(imf->imtype) || |