Selon Andrea Aime <[email protected]>:

> On Tue, Nov 12, 2013 at 12:45 PM, Simone Giannecchini <
> [email protected]> wrote:
>
> > >
> > > Will the PHOTOMETRIC= YCBCR work with a four band RGBI?
> > >
> >
> > It should not.
> >
>
> Actually... JPEG itself is not defined on 4 bands images as far as I know?
> Maybe GDAL is dropping the 4th band during the JPEG compression?

The YCbCR JPEG profile of TIFF is indeed limited to 3 bands. So if you pass a 4
band image, gdal_translate should refuse to process it.
You can JPEG compress a 4 band image, but it will use a JPEG codestream for each
band independantly, so the resulting size will be bigger.
A possible option would be to generate 2 GeoTIFFs for each input file : one
YCbCR JPEG compressed with the RGB components, and one JPEG compressed with the
I component. But that might complicate the overall workflow.

Even

>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>



------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to