-
Notifications
You must be signed in to change notification settings - Fork 4
Study spaces maps are low res #131
Comments
IIRC they're not true SVGs in that they embed a PNG with the colourful dots overlayed on top. We could solve this by vectorising our floor maps, which is something @anushks has attempted to do. |
Hi yes it takes forever LOL |
ahh, this would explain it i guess |
Yeah these maps come from the OccupEye API. I'm not sure if there's a way to get higher resolution ones, but I can investigate this |
We can use one of these solutions: https://stackoverflow.com/questions/1861382/how-to-convert-a-png-image-to-a-svg Others are programmatic which is nice (i.e. might be able to do this automatically API side). |
Via |
I fiddled around a bit, but didn't manage to produce anything substantially better. pypotrace seems like an easy way to do this programmatically, perhaps just before we cache the images in redis. vectormagick appears to produce similar results, so might not be worth paying for |
As far as i'm aware we get SVG's but they show extremely low res eve upon zooming in the app. the writing on them is un-readable.
The text was updated successfully, but these errors were encountered: