-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
Micro Lines Visible Between PNG Tiles in OpenSeadragon Viewer #2515
Comments
This is exactly the same issue being discussed in #2514 - see that thread for options on how to fix this. |
@pearcetm thank you, can you help me to understand what does it mean to build from master? I am using the latest version and defining it like this:
I also don't see the option to set the discussed subPixelRoundingForTransparency or the drawer. Do I also understand that there will be an upcoming new version that will fix the issue? |
If your PNGs don't actually have transparency, it might be best to use the workaround suggested in the other thread:
Yes, this issue will be fixed in an upcoming release, but it may take a while for that to happen. |
@petdud, the line of code suggested by @pearcetm over at #2514 is the temporary workaround that solves this issue for me (we have similar situation with PNG-based tilesets). viewer = OpenSeadragon({...});
viewer.addHandler('open',()=> viewer.world.getItemAt(0).source.hasTransparency = ()=>false ); |
The workaround works awesome, thank you @pearcetm & @bdrichards!! 🙏 just curious is there any side effect if my png has transparency? So far I could see some blurishness during zooms but not sure if this is because of the hasTransparency or not) |
If your png has partial transparency, you may notice tile borders showing up where adjacent semi-transparent tiles overlap, because the overlapping regions will be drawn twice. There would be potentially bigger problems if you have multiple images open at the same time and they overlap each other. |
I used the config setting |
I generate tiles using this command:
vips dzsave large_combined.png final --suffix .png --overlap 2
The image is pretty big with transparent background. When I display it using openseadragon
4.1.0
, there are micro lines visible between the tiles as below:When I use suffix .jpg, it works fine.
Here is example: https://cryptoarte.gallery - you can see micro lines on the image.
What can I do to fix it? I support themes in my front-end so the PNG makes my life so much easier but people complain on the lines so I really need to find a solution.
Tysm for help 🙏
The text was updated successfully, but these errors were encountered: