<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Sven,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I encountered the same problem few weeks ago. The pattern does exist: If the width of the image is not evenly divisible by four, than the layer transparency fails.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was just about to write a message like yours, but as I managed to reproduce the bug with a small testscript, I stumbled upon an error and then found out that it is already a known thing…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://osgeo-org.1560.x6.nabble.com/Layer-opacity-not-working-td5292269.html"><span lang="EN-US">http://osgeo-org.1560.x6.nabble.com/Layer-opacity-not-working-td5292269.html</span></a><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">As Jeff pointed out, if you built it on your own, then you can disable pixman, if you don’t actually need it… Cairo support was dependent of pixman I think.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If you are using a compiled package, maybe you can circumvent this issue by using the OPACITY at CLASS level. I know that OPACITY is already deprecated, but it might be useful until we are forced to use COMPOSITE blocks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">LAYER<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">__OPACITY 50 # doesn’t work<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">__CLASS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">____STYLE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">______OPACITY 50 # works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">____END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">__END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">If the layer objects are disjoint, the result should be the same. If polygons of the same layer overlap their opacities will add up, which or might not be useful behaviour…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE">I am also interested in alternatives. For example: Is it possible to change pixman, so the bug doesn’t occur? Sadly, I didn’t manage to compile Mapserver with PHP7 myself yet. If it turns
 out that nobody needs Pixman/Cairo and MS4W will be compiled without it, it would be fine for me as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Best wishes,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Jens<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>