[Geoserver-users] Transparency degrades image

Hi all,

When the transparent=true parameter is added on to the GetMap request for the WMS service the image is significantly degraded. I’ve attached an example. The format of the image doesn’t matter, it happens with both PNG and GIF.

I’m running GeoServer 2.5.2 on Ubuntu 12.04.2 LTS (precise) 64-bit with JVM Oracle Corporation: 1.7.0_21 (Java HotSpot™ 64-Bit Server VM). GeoServer is deployed within Tomcat/7.0.26.

Does anyone know why this is happening and how I can fix it? Perhaps I need to upgrade some image-processing lib on the server?

Best regards,
Dennis Pallett

example_degredation.png

Hi

I had a similar issue with poor text when labelling a transparent layer.

I turned on text halo via sld and it made it look much better.

Not perfect , but better.

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

···

From: Dennis Pallett [mailto:dennis@…6613…]
Sent: 31 July 2014 15:47
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Transparency degrades image

Hi all,

When the transparent=true parameter is added on to the GetMap request for the WMS service the image is significantly degraded. I’ve attached an example. The format of the image doesn’t matter, it happens with both PNG and GIF.

I’m running GeoServer 2.5.2 on Ubuntu 12.04.2 LTS (precise) 64-bit with JVM Oracle Corporation: 1.7.0_21 (Java HotSpot™ 64-Bit Server VM). GeoServer is deployed within Tomcat/7.0.26.

Does anyone know why this is happening and how I can fix it? Perhaps I need to upgrade some image-processing lib on the server?

Best regards,

Dennis Pallett

Hi Mark,

Thank you for your suggestion, it has indeed helped quite a lot! As you say, it's not perfect but much better.

Best regards,
Dennis

On 31-7-2014 17:23, Ismail, Mark wrote:

Hi

I had a similar issue with poor text when labelling a transparent layer.

I turned on text halo via sld and it made it look much better.

Not perfect , but better.

*Mark Ismail*

*Principal IT Officer*

Tel: 0151 443 3021

Knowsley Council êWestmorland Road êHuyton êL36 9GL

//

/Save time – use the IT Service Desk /*Self Serve* <http://kmbcselfservice/&gt;/Application /

*From:*Dennis Pallett [mailto:dennis@anonymised.com]
*Sent:* 31 July 2014 15:47
*To:* geoserver-users@lists.sourceforge.net
*Subject:* [Geoserver-users] Transparency degrades image

Hi all,

When the transparent=true parameter is added on to the GetMap request for the WMS service the image is significantly degraded. I've attached an example. The format of the image doesn't matter, it happens with both PNG and GIF.

I'm running GeoServer 2.5.2 on Ubuntu 12.04.2 LTS (precise) 64-bit with JVM Oracle Corporation: 1.7.0_21 (Java HotSpot(TM) 64-Bit Server VM). GeoServer is deployed within Tomcat/7.0.26. <http://7.0.26.>

Does anyone know why this is happening and how I can fix it? Perhaps I need to upgrade some image-processing lib on the server?

Best regards,

Dennis Pallett

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.

On Fri, Aug 1, 2014 at 10:05 AM, Dennis Pallett <dennis@anonymised.com> wrote:

Hi Mark,

Thank you for your suggestion, it has indeed helped quite a lot! As you
say, it's not perfect but much better.

The issue has been known for a while, unfortunately nobody had time to look
into it.
The bug is most likely in the JDK, but we need to find a work around for it
(in the code, so that
the users do not need to change their SLD's):

http://jira.codehaus.org/browse/GEOS-5486

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

Hi Andrea,

Thank you for the additional info. Adding the Rotation parameter has completely solved the issue. It's still a work-around but the side-effect is hardly noticeable.

Best regards,
Dennis

On 1-8-2014 10:52, Andrea Aime wrote:

On Fri, Aug 1, 2014 at 10:05 AM, Dennis Pallett <dennis@anonymised.com <mailto:dennis@anonymised.com>> wrote:

    Hi Mark,

    Thank you for your suggestion, it has indeed helped quite a lot!
    As you say, it's not perfect but much better.

The issue has been known for a while, unfortunately nobody had time to look into it.
The bug is most likely in the JDK, but we need to find a work around for it (in the code, so that
the users do not need to change their SLD's):

http://jira.codehaus.org/browse/GEOS-5486

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------