[openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

mmd notifications at github.com
Sat Sep 21 19:03:45 UTC 2024


Thank you for reviewing this PR another time.

> some icons are too dark, I inverted and hue-rotated them; here it's not done I suppose; see place_of_worship icon for an extreme example

Agree, that's also something I've noticed. I'm pushing another commit now which should improve the situation. As a general remark, I would leave that sort of fine tuning to a follow up pull request.

> do we need a smaller icon for waste baskets here just because it's smaller on the map render?

Yes, it matches exactly the size you see on the map.

> alignment wasn't great before, here it's even worse, see traffic lights for example

I've checked all 219 SVGs, and found that less than 10 of them might need some fine tuning. The vast majority of new SVGs is just fine. Hence, I think that's a good topic for follow up pull requests as well. 

> I still think it's https://github.com/openstreetmap/openstreetmap-website/pull/5080#issuecomment-2298987792 to switch to <img>s first, then start replacing them with svgs, assuming all of the images have the same size. Hopefully we can avoid random pixel offsets in css.

I'm not entirely clear what you're suggesting here. Assuming we need convert SVGs to PNGs and maintain new entries in browse.scss for them, that would be a very clear no-go for me. Speaking of experience in this PR, it's creating a huge effort with very limited options for later reuse. 

I would suggest to focus on any remaining import issues with SVGs instead in this PR, rather than spending time on PNGs which we want to phase out anyway.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5080#issuecomment-2365289785
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5080/c2365289785 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240921/fa94f7e7/attachment.htm>


More information about the rails-dev mailing list