Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

svg files are defaulting to humongous sizes #74

Open
oBlissing opened this issue Sep 17, 2015 · 4 comments
Open

svg files are defaulting to humongous sizes #74

oBlissing opened this issue Sep 17, 2015 · 4 comments

Comments

@oBlissing
Copy link
Contributor

No description provided.

@oBlissing oBlissing changed the title svg files are defaulting to humongous size svg files are defaulting to humongous sizes Sep 17, 2015
@oBlissing
Copy link
Contributor Author

Not sure if we should tamper with this at all as this is SVG:s expected behaviour.

@niklasl
Copy link
Member

niklasl commented Mar 1, 2016

GZippa dem (se t.ex. http://calendar.perfplanet.com/2014/tips-for-optimising-svg-delivery-for-the-web/) med t.ex. https://github.com/svg/svgo (som jag aldrig testat). (Går ju att göra för allt om vi behöver: https://css-tricks.com/snippets/htaccess/active-gzip-compression/). Godtyckligt enkelt/komplext beroende på vad vi gör hur och vad som ansvaras av byggsnurra respektive webbserver.

@oBlissing
Copy link
Contributor Author

Det vore absolut lämpligt. Dock handlar detta om storlek rent layoutmässigt.

@niklasl
Copy link
Member

niklasl commented Mar 1, 2016

Ah, just ja, den där grejen. Kanske går att tweaka viewBox och/eller preserveAspectRatio i SVG:erna (om det inte ställer till det när man försöker CSS-skala dem efteråt)...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants