File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Making a color transparent in an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Making a color transparent in an image" Watch "Making a color transparent in an image" New topic

Making a color transparent in an image

MindBlowing Code

Joined: Apr 26, 2012
Posts: 1
I'm going to start off with my problem as making the image background transparent is the best solution I've come up with.

I have a large image that when saved as a PNG (so that I may have a transparent background) is ~1.3mb. Saved as a JPG it is around 300kb.

Obviously what I'm trying to do is to get a transparent background while also having a quick download.

My best solution to this was to set the background color to something specific then run the image through a filter and change the color to alpha 100%. This may take even longer than downloading the 1.3mb image itself with most high speed connections these days.

So far I can not figure out how to do this in GWT. I have passively searched for a solution for about a week. I can't seem to get from point A to point B with this problem.

I am open to alternative solutions to the problem or assistance with turning a specific color in an image transparent.

Thank you for your time. :-)
It is sorta covered in the JavaRanch Style Guide.
subject: Making a color transparent in an image
It's not a secret anymore!