Commit 2f779f48 authored by Manish Singh's avatar Manish Singh

small patch from Nick Lamb that does "The Right Thing (TM)" for RGB tiff images

-Yosh
parent 344ffe8e
Mon Jan 11 18:11:32 PST 1999 Manish Singh <yosh@gimp.org>
* plug-ins/tiff/tiff.c: small patch from Nick Lamb that
does "The Right Thing (TM)" for RGB tiff images
Mon Jan 11 17:30:06 PST 1999 Manish Singh <yosh@gimp.org>
* commands.[ch]
......
......@@ -1053,6 +1053,7 @@ static gint save_image (char *filename, gint32 image, gint32 layer) {
switch (drawable_type)
{
case RGB_IMAGE:
predictor = 2;
samplesperpixel = 3;
bitspersample = 8;
photometric = PHOTOMETRIC_RGB;
......@@ -1067,6 +1068,7 @@ static gint save_image (char *filename, gint32 image, gint32 layer) {
alpha = 0;
break;
case RGBA_IMAGE:
predictor = 2;
samplesperpixel = 4;
bitspersample = 8;
photometric = PHOTOMETRIC_RGB;
......
......@@ -1053,6 +1053,7 @@ static gint save_image (char *filename, gint32 image, gint32 layer) {
switch (drawable_type)
{
case RGB_IMAGE:
predictor = 2;
samplesperpixel = 3;
bitspersample = 8;
photometric = PHOTOMETRIC_RGB;
......@@ -1067,6 +1068,7 @@ static gint save_image (char *filename, gint32 image, gint32 layer) {
alpha = 0;
break;
case RGBA_IMAGE:
predictor = 2;
samplesperpixel = 4;
bitspersample = 8;
photometric = PHOTOMETRIC_RGB;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment