-
Notifications
You must be signed in to change notification settings - Fork 90
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
Image quality ia poor after saving #499
Comments
Hi, not sure how to help. Do you have a reproducible example? |
Hi Tim,
I am sorry for the late reply.
I've attached an example using free and publicly available boundaries for
NSW in Australia.
The boundaries are here (too large to attach to the email):
https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026/access-and-downloads/digital-boundary-files
LGA - see Non ABS Structures -> Local Government Areas - 2024 - Shapefile
Suburbs - see Non ABS Structures -> Suburbs and Localities - 2021 -
Shapefile
My issue is the loss of image quality, mainly related to the underlying
ESRI World Imagery map.
It's perfect when seen as HTML but very poor when saved as any other format
(png, jpeg), including pdf.
Is there a way to save as image with good quality image/somewhat high
resolution?
I've also attached my map, which I saved as HTML and png, so you can see
the difference in image quality.
Best regards,
Aga
…On Wed, Jan 22, 2025 at 5:50 PM tim-salabim ***@***.***> wrote:
Hi, not sure how to help. Do you have a reproducible example?
—
Reply to this email directly, view it on GitHub
<#499 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BH4CXT4ZAUKU7YEWCWFEUML2L45TZAVCNFSM6AAAAABVTUPC3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBWGQZDSMRVG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There's nothing attached. I think you need to upload it here, rather than attaching things to the reply email. |
Apologies, I thought it would go through. Here is the code I used: LGA boundariesNSWLGA <- st_read("path/LGA_2024_AUST_GDA2020.shp") %>% st_transform(7844) #Suburbs S_sub2 <- st_intersection(Sydney_sub, Sydney_LGA1) #map m # Print the map Thanks, Aga |
Hi, I am using Leaflet to plot raster data, and everything looks good until I save the maps as PNG or any other format.
I use ESRI as the provider.
This is the code I used to save my maps as images.
saveWidget(m, file = "path.html")
mapshot(m, file = "path.png",
remove_controls = c("zoomControl"), vwidth = 700, vheight = 500)
Is that an issue with the package or is there a way to maintain/increase the resolution/quality of the image while saving the map?
Thank,
A
The text was updated successfully, but these errors were encountered: