From adff7aacad5003c19281c7dd1ac2a3e17d7de141 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 13 Jun 2006 18:51:52 +0000 Subject: [PATCH] bugfix 4324 Old issue... Blender saves jpg RGBA files. That's unsupported in all programs except Blender, always a source of problems with that feature. Now it just falls back to saving 24 bits when the "RGBA" option is set. --- source/blender/blenkernel/intern/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 766c6dc1d6a..976b525d841 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -431,6 +431,7 @@ int BKE_write_ibuf(ImBuf *ibuf, char *name, int imtype, int subimtype, int quali else if ELEM(imtype, R_JPEG90, R_MOVIE) { if(quality < 10) quality= 90; ibuf->ftype= JPG|quality; + if(ibuf->depth==32) ibuf->depth= 24; /* unsupported feature only confuses other s/w */ } else ibuf->ftype= TGA;