| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2011.01.04 19:28 "Re: Regression in libtiff 4.0 CVS when creating a JPEG RGB contig", by Dwight KellyHello, can you please define '2 band image'? > Even Rouault wrote: >> Hum, and there's also another case that doesn't work. >> >> If I have a 2 band image as source : >> >> $ ./tools/tiffcp 2band.tif out.tif -c jpeg -p contig >> JPEGLib: Bogus input colorspace. >> out.tif: Error, can't write strip 0. >> >> So, I'd also suggest changing : >> >> if (td->td_photometric == PHOTOMETRIC_MINISWHITE || >> td->td_photometric == PHOTOMETRIC_MINISBLACK) >> sp->cinfo.c.in_color_space = JCS_GRAYSCALE; >> >> into : >> >> if ((td->td_photometric == PHOTOMETRIC_MINISWHITE || >> td->td_photometric == PHOTOMETRIC_MINISBLACK) && >> td->td_samplesperpixel == 1) >> sp->cinfo.c.in_color_space = JCS_GRAYSCALE; >> -- Dwight Kelly Apago, Inc. 4080 McGinnis Ferry Rd Suite 601 Alpharetta, GA 30005 voice:(770) 619-1884 fax:(770) 619-1885 email: dkelly@apago.com web: http://www.apago.com Become a fan of Apago on Facebook <http://www.facebook.com/#%21/pages/Alpharetta-GA/Apago/41606887092?ref=ts&ajaxpipe=1&__a=13> |
|||||||