diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-24 10:30:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-24 10:30:37 +0400 |
commit | 7a2725048d9e1595fa2d188815653ab05bdbb9c0 (patch) | |
tree | cf9a6308791fbd442393f675047979e0a3f44f3f /source/blender/imbuf/intern | |
parent | df22957bfce70b704b6b93958814c1ca8b2211f5 (diff) |
- saving as a jpeg image would set the image as not having an alpha channel even when saving a copy.
- setting the color channels on save as would ignore the channel - BW/RGB/RGBA setting.
now its used when available but still need to hide BW for formats blender can only write as color.
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/jpeg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/jpeg.c b/source/blender/imbuf/intern/jpeg.c index 5a40de0a65e..a43a8672651 100644 --- a/source/blender/imbuf/intern/jpeg.c +++ b/source/blender/imbuf/intern/jpeg.c @@ -572,8 +572,12 @@ static int init_jpeg(FILE * outfile, struct jpeg_compress_struct * cinfo, struct cinfo->in_color_space = JCS_RGB; if (ibuf->planes == 8) cinfo->in_color_space = JCS_GRAYSCALE; +#if 0 + /* just write RGBA as RGB, + * unsupported feature only confuses other s/w */ + if (ibuf->planes == 32) cinfo->in_color_space = JCS_UNKNOWN; - +#endif switch(cinfo->in_color_space){ case JCS_RGB: cinfo->input_components = 3; |