<div dir="ltr">Hi Even,<div>I'm resurrecting this old post since I think we have (GeoServer) been hit by that problem again (although I'm not 100% sure about that).</div><div><a href="http://osgeo-org.1560.x6.nabble.com/Geotiff-pyramids-non-transparant-while-original-is-transparent-td5357343.html">http://osgeo-org.1560.x6.nabble.com/Geotiff-pyramids-non-transparant-while-original-is-transparent-td5357343.html</a><br></div><div><br></div><div>Do you know if there is any plan to fix <a href="https://trac.osgeo.org/gdal/ticket/2213" target="_blank" style="color:rgb(17,85,204);font-family:monospace;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(255,255,255)">https://trac.osgeo.org/<span class="gmail-il">gdal</span>/<wbr>ticket/2213</a>?<br></div><div><br></div><div>Best Regards,</div><div>Daniele</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 25, 2016 at 12:14 PM, Daniele Romagnoli <span dir="ltr"><<a href="mailto:daniele.romagnoli@geo-solutions.it" target="_blank">daniele.romagnoli@geo-solutions.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">JAI-ImageIO TIFFDecompressor does the same (Line 0888):<br><div><a href="https://java.net/projects/jai-imageio-core/sources/svn/content/trunk/src/share/classes/com/sun/media/imageio/plugins/tiff/TIFFDecompressor.java?rev=254" target="_blank">https://java.net/projects/jai-<wbr>imageio-core/sources/svn/<wbr>content/trunk/src/share/<wbr>classes/com/sun/media/imageio/<wbr>plugins/tiff/TIFFDecompressor.<wbr>java?rev=254</a><br><br></div><div>(also putting an imageio-ext link for quicker reference)<br></div><div><a href="https://github.com/geosolutions-it/imageio-ext/blob/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff/TIFFDecompressor.java#L900" target="_blank">https://github.com/<wbr>geosolutions-it/imageio-ext/<wbr>blob/master/plugin/tiff/src/<wbr>main/java/it/geosolutions/<wbr>imageio/plugins/tiff/<wbr>TIFFDecompressor.java#L900</a><br></div><div><br>Note the: <br>redLut[i] <span class="m_-6110130834516508810gmail-pl-k">=</span> (<span class="m_-6110130834516508810gmail-pl-k">byte</span>)((colorMap[i]<span class="m_-6110130834516508810gmail-pl-k">*</span><span class="m_-6110130834516508810gmail-pl-c1">255</span>)<span class="m_-6110130834516508810gmail-pl-k">/</span><span class="m_-6110130834516508810gmail-pl-c1">65535</span><wbr>);<br></div><div>which results into using a 257 scale factor.<br></div><div><br></div><div>Cheers,<br></div><div>Daniele<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Nov 25, 2016 at 11:27 AM, Ari Jolma <span dir="ltr"><<a href="mailto:ari.jolma@gmail.com" target="_blank">ari.jolma@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div bgcolor="#FFFFFF" text="#000000"><span>
24.11.2016, 18:01, Even Rouault kirjoitti:<br>
<blockquote type="cite">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Could be worth fixing that if that cause issues (apparently in your use case at least), but I'd be interested by information of what is the standard/recommanded/best-prac<wbr>tice-in-the-industry/etc... formulas to use for the mapping between the [0,255] and [0,65535] ranges.</p>
</blockquote>
<br></span>
At least in the GTK circles it seems to be a standard practice to
use the 257 as the scaling factor. See for example<br>
<br>
<a class="m_-6110130834516508810m_-1105274854933738756moz-txt-link-freetext" href="http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Color.html" target="_blank">http://gtk2-perl.sourceforge.n<wbr>et/doc/pod/Gtk2/Gdk/Color.html</a><span class="m_-6110130834516508810HOEnZb"><font color="#888888"><br>
<br>
Ari<br>
<br>
<br>
<br>
</font></span></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/gdal-dev</a><br></span></blockquote></div><br><br clear="all"><br>-- <br><span class=""><div class="m_-6110130834516508810gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="font-size:12.8px">==</span><br></div><div dir="ltr"><span style="font-size:12.8000001907349px">GeoServer Professional Services from the experts! Visit</span><br style="font-size:12.8000001907349px"><a href="http://goo.gl/it488V" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">http://goo.gl/it488V</a><span style="font-size:12.8000001907349px"> for more information.</span><br>
==<br>
<br>Ing. Daniele Romagnoli<br>Senior Software Engineer<br><br>GeoSolutions S.A.S.<br><span style="font-size:12.8px">Via di Montramito 3/A</span><br>55054 Massarosa (LU)<br>Italy<br>phone: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a><br>fax: <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272</a><br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/<wbr>geosolutions_it</a><br><br>------------------------------<wbr>-------------------------<br><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">Le
informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio
stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti,
copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento
contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">The
information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential
or proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure,
reproduction, copying, distribution, or either dissemination, either
whole or partial, is strictly forbidden except previous formal approval
of the named addressee(s). If you are not the intended recipient, please
contact immediately the sender by telephone, fax or e-mail and delete
the information in this message that has been received in error. The
sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility
for changes made after they were sent or for other risks which arise as
a result of e-mail transmission, viruses, etc.</font></p><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Regards,</div><div dir="ltr">Daniele Romagnoli</div><div dir="ltr">==</div><div dir="ltr">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div dir="ltr">==</div><div dir="ltr"><br></div><div dir="ltr">Ing. Daniele Romagnoli</div><div dir="ltr">Senior Software Engineer</div><div dir="ltr"><br></div><div dir="ltr">GeoSolutions S.A.S.</div><div dir="ltr">Via di Montramito 3/A</div><div dir="ltr">55054 Massarosa (LU)</div><div dir="ltr">Italy</div><div dir="ltr">phone: +39 0584 962313</div><div dir="ltr">fax: +39 0584 1660272</div><div dir="ltr"><br></div><div dir="ltr"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div dir="ltr"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div><div dir="ltr"><br></div><div dir="ltr">-------------------------------------------------------</div><div dir="ltr">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</div><div dir="ltr">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</div><div dir="ltr"> </div><div dir="ltr">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>