Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/writeimage.c')
-rw-r--r--source/blender/imbuf/intern/writeimage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/writeimage.c b/source/blender/imbuf/intern/writeimage.c
index 148597dda35..340f8ace415 100644
--- a/source/blender/imbuf/intern/writeimage.c
+++ b/source/blender/imbuf/intern/writeimage.c
@@ -36,6 +36,7 @@
#include <io.h>
#endif
+#include "BKE_global.h"
#include "BLI_blenlib.h"
#include "imbuf.h"
@@ -54,6 +55,7 @@
#include "IMB_amiga.h"
#include "IMB_png.h"
#include "IMB_bmp.h"
+#include "IMB_tiff.h"
#include "IMB_radiance_hdr.h"
#include "IMB_iff.h"
@@ -87,6 +89,9 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
if (IS_iris(ibuf)) {
return imb_saveiris(ibuf,naam,flags);
}
+ if (G.have_libtiff && IS_tiff(ibuf)) {
+ return imb_savetiff(ibuf,naam,flags);
+ }
file = open(naam, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666);
if (file < 0) return (FALSE);