Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transparency rendered as black #29

Open
rmcloughlin opened this issue Jul 8, 2017 · 0 comments
Open

transparency rendered as black #29

rmcloughlin opened this issue Jul 8, 2017 · 0 comments

Comments

@rmcloughlin
Copy link

rmcloughlin commented Jul 8, 2017

I'm using openslide-java to create thumbnail images of slides. It works correctly for most slides but if a slide contains a transparent section then that part is rendered as black. The get_thumbnail() method of the python API renders transparency as white (which is the behavior that I would like).

I'm using the API like this:

OpenSlide openSlide = new OpenSlide(inputFile);
BufferedImage image = openSlide.createThumbnailImage(300);
ImageIO.write(image, "jpg", outputFile);

I've attached an example image (tiled tiff with transparency).

input.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant