Hello:
One possible solution to creating transparent layers is to use an SVG
browser
and attach a filter to the layer so that the layer can be made transparent.
This sort
of transparency is applied to the layer as a whole and is not just one
pixel value that
is defined to be transparent and rendered as such This has
the advantage of allowing the amount of transparency of the entire layer to
be
specified within the browser at the cost of more time for rendering plus
the setup of
the SVG browser. The downside is using SVG which might be too complicated
for what you want to do. ...
cheers
Mike
I do have a BETA Version of the GIF output renderer for Geoserver.
So transparency is supported and also image/gif. Code itself
isnt't that clean yet.
Again demo is available at:
http://patrick.schlaepfer.com/qwms/quick001.htm
Used a freely available GIF encoder (http://www.mycgiserver.com/~ranab/img/index.html)
But think could be helpful/interesting for others here
Michael SEYMOUR writes:
Hello:
One possible solution to creating transparent layers is to use an SVG
browser
and attach a filter to the layer so that the layer can be made transparent.
This sort
of transparency is applied to the layer as a whole and is not just one
pixel value that
is defined to be transparent and rendered as such This has
the advantage of allowing the amount of transparency of the entire layer to
be
specified within the browser at the cost of more time for rendering plus
the setup of
the SVG browser. The downside is using SVG which might be too complicated
for what you want to do. ...
cheers
Mike
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Awesome. I'd love to include in the next release of GeoServer. If it's
still pretty beta we can slot it in on the 1.3 branch that I'm starting
pretty soon, to ensure that it gets tested on beta versions of
GeoServer.
I just created a jira task for you,
http://jira.codehaus.org/browse/GEOS-199, you can assign it to yourself
and then attach your files to the issue itself, and I can roll them
into 1.3. You will need to sign up for a jira account, but it's really
easy, just your email address, which is just used to send you
notifications on issues your watching or working on.
best regards,
Chris
Quoting patrick@anonymised.com:
I do have a BETA Version of the GIF output renderer for Geoserver.
So transparency is supported and also image/gif. Code itself
isnt't that clean yet.
Again demo is available at:
http://patrick.schlaepfer.com/qwms/quick001.htm
Used a freely available GIF encoder
(http://www.mycgiserver.com/~ranab/img/index.html)
But think could be helpful/interesting for others here
Michael SEYMOUR writes:
>
> Hello:
>
> One possible solution to creating transparent layers is to use an
SVG
> browser
> and attach a filter to the layer so that the layer can be made
transparent.
> This sort
> of transparency is applied to the layer as a whole and is not just
one
> pixel value that
> is defined to be transparent and rendered as such This has
> the advantage of allowing the amount of transparency of the entire
layer to
> be
> specified within the browser at the cost of more time for rendering
plus
> the setup of
> the SVG browser. The downside is using SVG which might be too
complicated
> for what you want to do. ...
>
> cheers
>
> Mike
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your
judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement
on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/
There is strange effect on the pictures generated.
There are some black pixels left.
What I'm doing is:
In the class JAIMapResponse in
public void formatImageOutputStream(
String format,
BufferedImage image,
OutputStream outStream)
int g_height = image.getHeight();
int g_width = image.getWidth();
GifImage img = new GifImage(g_width, g_height);
Graphics2D graphics = img.getGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, 140, 100);
Graphics2D ig = (Graphics2D) image.getGraphics();
if(request.isTransparent()) {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
img.setTransparency(ig.getBackground());
} else {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
}
Any idea?
Thanks
hi,
my impression is that you just need to replace
graphics.fillRect(0, 0, 140, 100);
by
graphics.fillRect(0, 0, g_width, g_height);
cheers,
Gabriel
On Mon, 2004-09-20 at 14:01, patrick@anonymised.com wrote:
There is strange effect on the pictures generated.
There are some black pixels left.
What I'm doing is:
In the class JAIMapResponse in
public void formatImageOutputStream(
String format,
BufferedImage image,
OutputStream outStream)
int g_height = image.getHeight();
int g_width = image.getWidth();
GifImage img = new GifImage(g_width, g_height);
Graphics2D graphics = img.getGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, 140, 100);
Graphics2D ig = (Graphics2D) image.getGraphics();
if(request.isTransparent()) {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
img.setTransparency(ig.getBackground());
} else {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
}
Any idea?
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
sorry I answered too fast and didn't seen you were doing it below
can't figure out what's happening, sorry
On Mon, 2004-09-20 at 14:01, patrick@anonymised.com wrote:
There is strange effect on the pictures generated.
There are some black pixels left.
What I'm doing is:
In the class JAIMapResponse in
public void formatImageOutputStream(
String format,
BufferedImage image,
OutputStream outStream)
int g_height = image.getHeight();
int g_width = image.getWidth();
GifImage img = new GifImage(g_width, g_height);
Graphics2D graphics = img.getGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, 140, 100);
Graphics2D ig = (Graphics2D) image.getGraphics();
if(request.isTransparent()) {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
img.setTransparency(ig.getBackground());
} else {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
}
Any idea?
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
It might be that the image is 24bit and GIF is only supporting
8bit. How can I reduce the colors in the BufferedImage to 256?
Any ideas or suggestions, if my assumtion could be right.
Gabriel [ISO-8859-1] Rold�n writes:
sorry I answered too fast and didn't seen you were doing it below
can't figure out what's happening, sorry
On Mon, 2004-09-20 at 14:01, patrick@anonymised.com wrote:
There is strange effect on the pictures generated.
There are some black pixels left.
What I'm doing is:
In the class JAIMapResponse in
public void formatImageOutputStream(
String format,
BufferedImage image,
OutputStream outStream)
int g_height = image.getHeight();
int g_width = image.getWidth();
GifImage img = new GifImage(g_width, g_height);
Graphics2D graphics = img.getGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, 140, 100);
Graphics2D ig = (Graphics2D) image.getGraphics();
if(request.isTransparent()) {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
img.setTransparency(ig.getBackground());
} else {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
}
Any idea?
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Now it's working, have to fix some bugs, but have a look to:
http://patrick.schlaepfer.com/qwms/quick001.htm
Used another GIFEncoding Class, and now it's not too bad
I would say. Will put it into the jira...
Gabriel [ISO-8859-1] Rold�� writes:
sorry I answered too fast and didn't seen you were doing it below
can't figure out what's happening, sorry
On Mon, 2004-09-20 at 14:01, patrick@anonymised.com wrote:
There is strange effect on the pictures generated.
There are some black pixels left.
What I'm doing is:
In the class JAIMapResponse in
public void formatImageOutputStream(
String format,
BufferedImage image,
OutputStream outStream)
int g_height = image.getHeight();
int g_width = image.getWidth();
GifImage img = new GifImage(g_width, g_height);
Graphics2D graphics = img.getGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, 140, 100);
Graphics2D ig = (Graphics2D) image.getGraphics();
if(request.isTransparent()) {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
img.setTransparency(ig.getBackground());
} else {
graphics.setColor(ig.getBackground());
graphics.fillRect(0, 0, g_width, g_height);
graphics.drawImage(image, 0, 0, null);
}
Any idea?
Thanks
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Alle 19:43, lunedì 20 settembre 2004, patrick@anonymised.com ha scritto:
Now it's working, have to fix some bugs, but have a look to:
http://patrick.schlaepfer.com/qwms/quick001.htm
Used another GIFEncoding Class, and now it's not too bad
I would say. Will put it into the jira...
... well, I cannot see anything neither with Mozilla nor with
Konqueror... (don't have IE, Linux OS here...)
Best regards
Andrea Aime
Quoting Andrea Aime <andrea.aime@anonymised.com>:
Alle 19:43, lunedì 20 settembre 2004, patrick@anonymised.com ha
scritto:
> Now it's working, have to fix some bugs, but have a look to:
>
> http://patrick.schlaepfer.com/qwms/quick001.htm
>
> Used another GIFEncoding Class, and now it's not too bad
> I would say. Will put it into the jira...
>
... well, I cannot see anything neither with Mozilla nor with
Konqueror... (don't have IE, Linux OS here...)
I was wondering why I couldn't see it either. Tried on IE and it works
fine. I guess the quickwms javascript is IE only? That stinks, I was
going to look into it as a client to start using a bit...
Best regards
Andrea Aime
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement
on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/
Put all the files need for GIF output into
http://jira.codehaus.org/browse/GEOS-199
About the support in the java advanced imaging. It's release
candidte thing. Either we integrate the GIFOutputStream class - which
works perfectly into org.geotools tree, so no additional jar is
needed.
Any comments or ideas are as always welcome
Patrick