[Geoserver-users] animated gif WMS output and transparency

Hi,

does anybody here know if transparency should work with animated gif
output on WMS requests (in combi with time or elevation)?

I'm able to receive animated gif's but they always have a background,
whatever combi of transparent/bgcolor I try.

I've tried to look into source code of geoserver, but there is a lot of
advanced imaging stuff there, of which I'm not sure which code is
reached and which not. I found some lines from which I conclude that it
should be possible:

https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/map/GIFMapResponse.java#L95

any help or hints are appreciated

Regards,

Richard Duivenvoorde

Hi all!

I’m relatively new to the animation reflector of GeoServer and tried to create a transparent GIF loop whitout any luck. The opaque version works well and currently stuck with this using a white background. Are there any workaround or way to hack the transparency support into GeoServer to get a transparent background animation or is it planned to be intruduced in a (not so distant) future version? (Currently I use 2.4.0 which is not the most up-to-date one, so if in newer ones it’s fixed, than sorry for the question.)

Best Regards,
Balazs Eigner

···

2014-05-15 14:15 GMT+02:00 Richard Duivenvoorde <rdmailings@anonymised.com>:

Hi,

does anybody here know if transparency should work with animated gif
output on WMS requests (in combi with time or elevation)?

I’m able to receive animated gif’s but they always have a background,
whatever combi of transparent/bgcolor I try.

I’ve tried to look into source code of geoserver, but there is a lot of
advanced imaging stuff there, of which I’m not sure which code is
reached and which not. I found some lines from which I conclude that it
should be possible:

https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/map/GIFMapResponse.java#L95

any help or hints are appreciated

Regards,

Richard Duivenvoorde


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

it wasn't working, but based on some code of Simone I created the
following patch/pull request which made it working with me:

https://github.com/geoserver/geoserver/pull/595

I have to write a test first to make it pullable and land in current
dev/master branch.
That is on my todo list :slight_smile:

If you are able to build geoserver yourself (actually pretty easy, this
was the first time for me too), you can pull that PR in and try.

Regards,

Richard Duivenvoorde

On 13-06-14 08:24, Balázs Eigner wrote:

Hi all!

I'm relatively new to the animation reflector of GeoServer and tried to
create a transparent GIF loop whitout any luck. The opaque version works
well and currently stuck with this using a white background. Are there
any workaround or way to hack the transparency support into GeoServer to
get a transparent background animation or is it planned to be intruduced
in a (not so distant) future version? (Currently I use 2.4.0 which is
not the most up-to-date one, so if in newer ones it's fixed, than sorry
for the question.)

Best Regards,
Balazs Eigner

2014-05-15 14:15 GMT+02:00 Richard Duivenvoorde <rdmailings@anonymised.com
<mailto:rdmailings@anonymised.com>>:

    Hi,

    does anybody here know if transparency should work with animated gif
    output on WMS requests (in combi with time or elevation)?

    I'm able to receive animated gif's but they always have a background,
    whatever combi of transparent/bgcolor I try.

    I've tried to look into source code of geoserver, but there is a lot of
    advanced imaging stuff there, of which I'm not sure which code is
    reached and which not. I found some lines from which I conclude that it
    should be possible:

    https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/map/GIFMapResponse.java#L95

    any help or hints are appreciated

    Regards,

    Richard Duivenvoorde

    ------------------------------------------------------------------------------
    "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
    Instantly run your Selenium tests across 300+ browser/OS combos.
    Get unparalleled scalability from the best Selenium testing platform
    available
    Simple to use. Nothing to install. Get started now for free."
    http://p.sf.net/sfu/SauceLabs
    _______________________________________________
    Geoserver-users mailing list
    Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Richard!

First of all, thanks for the really quick response! I’m delighted to see this patch, thanks for the work with it! I’ll try to take a look at it and the GeoServer building, hope I can do it. :slight_smile:

Best Regards,
Balazs Eigner

···

2014-06-13 8:40 GMT+02:00 Richard Duivenvoorde <rdmailings@anonymised.com>:

Hi,

it wasn’t working, but based on some code of Simone I created the
following patch/pull request which made it working with me:

https://github.com/geoserver/geoserver/pull/595

I have to write a test first to make it pullable and land in current
dev/master branch.
That is on my todo list :slight_smile:

If you are able to build geoserver yourself (actually pretty easy, this
was the first time for me too), you can pull that PR in and try.

Regards,

Richard Duivenvoorde

On 13-06-14 08:24, Balázs Eigner wrote:

Hi all!

I’m relatively new to the animation reflector of GeoServer and tried to
create a transparent GIF loop whitout any luck. The opaque version works
well and currently stuck with this using a white background. Are there
any workaround or way to hack the transparency support into GeoServer to
get a transparent background animation or is it planned to be intruduced
in a (not so distant) future version? (Currently I use 2.4.0 which is
not the most up-to-date one, so if in newer ones it’s fixed, than sorry
for the question.)

Best Regards,
Balazs Eigner

2014-05-15 14:15 GMT+02:00 Richard Duivenvoorde <rdmailings@anonymised.com

mailto:[rdmailings@anonymised.com..5924...](mailto:rdmailings@anonymised.com)>:

Hi,

does anybody here know if transparency should work with animated gif
output on WMS requests (in combi with time or elevation)?

I’m able to receive animated gif’s but they always have a background,
whatever combi of transparent/bgcolor I try.

I’ve tried to look into source code of geoserver, but there is a lot of
advanced imaging stuff there, of which I’m not sure which code is
reached and which not. I found some lines from which I conclude that it
should be possible:

https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/map/GIFMapResponse.java#L95

any help or hints are appreciated

Regards,

Richard Duivenvoorde


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform
available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net

mailto:[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@anonymised.comeforge.net)
https://lists.sourceforge.net/lists/listinfo/geoserver-users