-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Bad image quality of maps after zooming in #275
Comments
Is this happening only on iPad? I've just tried it on my Mac in Chrome and the image loads correctly at full resolution. |
No, on my computer (windows and linux) too. It loads the right image but it renders with bad quality. |
Very strange... We are doing a transform of the image to make it freely zoomable and there is an issue that you can't have a 100% zoom 1:1 pixel with the original (cause it's calculated as starting point at 1x relative to the available screen size). Can you see if there are any error in script loading in the console of the developer tools? p.s. link to the page for ease of access: https://tarkov.dev/map/woods-3d |
Yes, that's the issue I was referring to as not 100% zoom. You can see that both images are aligned to the bottom but that the labels' area ends slightly lower on the left side, that's because it shows the image at like 98% zoom. @GrantBirki can you look into this? |
That blurriness in the screenshots above is super weird honestly. I have not seen something like that before except in photo editing software when someone applies a blur filter to an image |
I think this is the problem: |
@nick-traeger That looks like it is indeed the issue. I wonder if there is an alternate npm package we can use instead? Seeing as that bug has been open for a while without any traction |
Describe the Issue
Hello,
unfortunately, the images of maps are displayed by the browser (tested in Chrome on PC and on Safari on iPad) much worse than the original would allow. You can see this very well when you scroll into the images.
Expected Behavior
Image quality should be the same as the original.
To Reproduce
Open any map and zoom in. Compare this to the original image.
Client
Desktop
Browser
Chrome
Relevant Console Log Output
No response
Extra Information
If you apply
image-rendering: pixelated;
to the img tag of the map it is a bit better.The text was updated successfully, but these errors were encountered: