SlideShare a Scribd company logo
1 of 19
Download to read offline
I ❤ ESSVEEGEE
“So what actually is an SVG Dad?”
“Well Bobby, SVG is…”
JPG PNG GIF SVG
SVG (Scaleable Vector Graphics) is a vector file format.
It’s XML-based and kinda not actually an image per se.
It can be used to display images and a whole lot more besides…
SVG
JPG
PNG
GIF
The power of SVG comes from its flexibility. As we can easily access
the structure of the SVG we can reference individual parts, change
colours, create dynamic text and even animate.
You can embed images within an SVG but that’s not really the point.
Full support from Chrome 49 onwards
Full support from Safari 9.1 onwards
Flawed implementation from IE9 to IE11 but it kinda works
Full support from Edge 13 onwards
Full support from Firefox 47 onwards
We use SVG on the site to deliver high-res University logos.
It did have a PNG fallback for older browsers but support is
good enough now for this to be removed. Splendid.
In use?
GIF
SVG SVG
PNG
BOUNTY!The first person to bring me an example of an SVG from our
site that only contains an embedded image will win a prize*.
*Prize will be rubbish and not worth more than 30p
An SVG sprite is a single SVG file that contains multiple paths and
shapes that can be displayed/manipulated together or
independently of one another.
A common use case for sprites, SVG or not, are icon sets.
SVG sprites
I want to use an SVG sprite to deliver optimised brand assets.
Fewer HTTP requests, A single file for maintenance, centralised
optimisation of multiple elements… It’s pretty cool!
In an SVG sprite we can simply give a group of paths an identifier (id)
and then reference that like a normal image in our HTML.
Why sprite?
<img src="svg/uob-logos/uob-logo-optimised.svg#logo-
reversed" alt="The University of Bath logo, reversed">
Simples :-)
The Sulis head icon described with SVG paths. OMG!
“Optimising an SVG is a lot like formatting a beautiful HTML page…”
Optimisation is just stripping out everything we don’t need:

Redundant groups, unnecessary IDs, duff paths, transforms etc.
Our SVG workflow needs to have a hand-crafting stage at the mo.
Sketch
Other vector
illustration packages

are available
SVGsus
It really is called
SVGsus. This is the
initial optimisation
stage
Hands
Reformatting by
hand, adding
comments and
cleaning up
Obviously reducing these steps would be great. At the moment making
an optimised SVG is a fairly inefficient process.
What we really want is some kind of automation with Grunt, our
Javascript task runner.
However automated SVG optimisation tends to be quite aggressive. It
likes strip out #ids - We need these as identifiers for the fragments.
There’s probably configuration that can sort this.
Automation
Combine SVG with srcset to deliver responsive University branding
Automate as much of our SVG generation workflow as possible
Benchmark performance of SVGs
The future
❤
Phones out, time to tweet. The champagne story is complete.
.@uniofbathdmc shipped “Changing associated item not reflected in parent”.

Champagne to Claverton Down please @rossferg 🍾 #cursedstory

More Related Content

Similar to S&T Ess Vee Gee 211016

Switch Away from Icon Fonts to SVG
Switch Away from Icon Fonts to SVGSwitch Away from Icon Fonts to SVG
Switch Away from Icon Fonts to SVGExove
 
SVG Strikes Back
SVG Strikes BackSVG Strikes Back
SVG Strikes BackMatt Baxter
 
Easy charting with
Easy charting withEasy charting with
Easy charting withMajor Ye
 
SVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader AccessibilitySVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader AccessibilityDennis Lembree
 
Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018Graham Armfield
 
Accessibility Hacks version 2
Accessibility Hacks version 2Accessibility Hacks version 2
Accessibility Hacks version 2Graham Armfield
 
Accessibility Hacks Version 2
Accessibility Hacks Version 2Accessibility Hacks Version 2
Accessibility Hacks Version 2Graham Armfield
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Pascal Rettig
 
Rich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScriptRich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScriptGjokica Zafirovski
 
SVG - Scalable Vector Graphic
SVG - Scalable Vector GraphicSVG - Scalable Vector Graphic
SVG - Scalable Vector GraphicAkila Iroshan
 
6 Methods to use page scroll animation.pdf
6 Methods to use page scroll animation.pdf6 Methods to use page scroll animation.pdf
6 Methods to use page scroll animation.pdfBe Problem Solver
 
Font icons vs inline svg - 2016
Font icons vs inline svg - 2016Font icons vs inline svg - 2016
Font icons vs inline svg - 2016Mohammad Bayat
 
We should optimize images
We should optimize imagesWe should optimize images
We should optimize imagesShogo Sensui
 
Serious Animation (an introduction to Web Animations)
Serious Animation (an introduction to Web Animations)Serious Animation (an introduction to Web Animations)
Serious Animation (an introduction to Web Animations)brianskold
 

Similar to S&T Ess Vee Gee 211016 (20)

Switch Away from Icon Fonts to SVG
Switch Away from Icon Fonts to SVGSwitch Away from Icon Fonts to SVG
Switch Away from Icon Fonts to SVG
 
SVG Strikes Back
SVG Strikes BackSVG Strikes Back
SVG Strikes Back
 
Easy charting with
Easy charting withEasy charting with
Easy charting with
 
SVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader AccessibilitySVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader Accessibility
 
Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018Accessibility Hacks Wordcamp Manchester October 2018
Accessibility Hacks Wordcamp Manchester October 2018
 
Accessibility Hacks version 2
Accessibility Hacks version 2Accessibility Hacks version 2
Accessibility Hacks version 2
 
Accessibility Hacks Version 2
Accessibility Hacks Version 2Accessibility Hacks Version 2
Accessibility Hacks Version 2
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3
 
Next generation Graphics: SVG
Next generation Graphics: SVGNext generation Graphics: SVG
Next generation Graphics: SVG
 
Enhance Enhance
Enhance EnhanceEnhance Enhance
Enhance Enhance
 
Html 5 svg
Html 5 svgHtml 5 svg
Html 5 svg
 
Rich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScriptRich Media Advertising with SVG and JavaScript
Rich Media Advertising with SVG and JavaScript
 
Learn svg
Learn svgLearn svg
Learn svg
 
SVG 101
SVG 101SVG 101
SVG 101
 
SVG - Scalable Vector Graphic
SVG - Scalable Vector GraphicSVG - Scalable Vector Graphic
SVG - Scalable Vector Graphic
 
6 Methods to use page scroll animation.pdf
6 Methods to use page scroll animation.pdf6 Methods to use page scroll animation.pdf
6 Methods to use page scroll animation.pdf
 
Font icons vs inline svg - 2016
Font icons vs inline svg - 2016Font icons vs inline svg - 2016
Font icons vs inline svg - 2016
 
We should optimize images
We should optimize imagesWe should optimize images
We should optimize images
 
Svghtml5 Meetup
Svghtml5 MeetupSvghtml5 Meetup
Svghtml5 Meetup
 
Serious Animation (an introduction to Web Animations)
Serious Animation (an introduction to Web Animations)Serious Animation (an introduction to Web Animations)
Serious Animation (an introduction to Web Animations)
 

More from Dan Dineen

S&T What I know about Node 110817
S&T What I know about Node 110817S&T What I know about Node 110817
S&T What I know about Node 110817Dan Dineen
 
S&T Pair up suckaz 070417
S&T Pair up suckaz 070417S&T Pair up suckaz 070417
S&T Pair up suckaz 070417Dan Dineen
 
S&T Pixel imperfect 150716
S&T Pixel imperfect 150716S&T Pixel imperfect 150716
S&T Pixel imperfect 150716Dan Dineen
 
S&T 15 minutes of fame 240317
S&T 15 minutes of fame 240317S&T 15 minutes of fame 240317
S&T 15 minutes of fame 240317Dan Dineen
 
S&T Bugs 021216
S&T Bugs 021216S&T Bugs 021216
S&T Bugs 021216Dan Dineen
 
Show & tell - Pinned item curation
Show & tell - Pinned item curationShow & tell - Pinned item curation
Show & tell - Pinned item curationDan Dineen
 
Show & tell - Summary section user testing
Show & tell - Summary section user testingShow & tell - Summary section user testing
Show & tell - Summary section user testingDan Dineen
 
Show & tell - A new CMS infrastructure
Show & tell - A new CMS infrastructureShow & tell - A new CMS infrastructure
Show & tell - A new CMS infrastructureDan Dineen
 
Show & tell - The Foundry typefaces
Show & tell - The Foundry typefacesShow & tell - The Foundry typefaces
Show & tell - The Foundry typefacesDan Dineen
 
Show & tell - Who is Hugo?
Show & tell - Who is Hugo?Show & tell - Who is Hugo?
Show & tell - Who is Hugo?Dan Dineen
 
Show & tell - The mighty hyphen
Show & tell - The mighty hyphenShow & tell - The mighty hyphen
Show & tell - The mighty hyphenDan Dineen
 
Show & tell - The anatomy of a responsive website
Show & tell - The anatomy of a responsive websiteShow & tell - The anatomy of a responsive website
Show & tell - The anatomy of a responsive websiteDan Dineen
 
Show & tell - Schema.org
Show & tell - Schema.orgShow & tell - Schema.org
Show & tell - Schema.orgDan Dineen
 
Show & tell - Less stuff
Show & tell - Less stuffShow & tell - Less stuff
Show & tell - Less stuffDan Dineen
 
Show & tell - Flex in flux
Show & tell - Flex in fluxShow & tell - Flex in flux
Show & tell - Flex in fluxDan Dineen
 
Show & tell - Covert accessibility
Show & tell - Covert accessibilityShow & tell - Covert accessibility
Show & tell - Covert accessibilityDan Dineen
 
Show & tell - All the small things
Show & tell - All the small thingsShow & tell - All the small things
Show & tell - All the small thingsDan Dineen
 
Show & tell - A more accessible accordion
Show & tell - A more accessible accordionShow & tell - A more accessible accordion
Show & tell - A more accessible accordionDan Dineen
 
Show & tell - 16 pixels of pain
Show & tell - 16 pixels of painShow & tell - 16 pixels of pain
Show & tell - 16 pixels of painDan Dineen
 

More from Dan Dineen (19)

S&T What I know about Node 110817
S&T What I know about Node 110817S&T What I know about Node 110817
S&T What I know about Node 110817
 
S&T Pair up suckaz 070417
S&T Pair up suckaz 070417S&T Pair up suckaz 070417
S&T Pair up suckaz 070417
 
S&T Pixel imperfect 150716
S&T Pixel imperfect 150716S&T Pixel imperfect 150716
S&T Pixel imperfect 150716
 
S&T 15 minutes of fame 240317
S&T 15 minutes of fame 240317S&T 15 minutes of fame 240317
S&T 15 minutes of fame 240317
 
S&T Bugs 021216
S&T Bugs 021216S&T Bugs 021216
S&T Bugs 021216
 
Show & tell - Pinned item curation
Show & tell - Pinned item curationShow & tell - Pinned item curation
Show & tell - Pinned item curation
 
Show & tell - Summary section user testing
Show & tell - Summary section user testingShow & tell - Summary section user testing
Show & tell - Summary section user testing
 
Show & tell - A new CMS infrastructure
Show & tell - A new CMS infrastructureShow & tell - A new CMS infrastructure
Show & tell - A new CMS infrastructure
 
Show & tell - The Foundry typefaces
Show & tell - The Foundry typefacesShow & tell - The Foundry typefaces
Show & tell - The Foundry typefaces
 
Show & tell - Who is Hugo?
Show & tell - Who is Hugo?Show & tell - Who is Hugo?
Show & tell - Who is Hugo?
 
Show & tell - The mighty hyphen
Show & tell - The mighty hyphenShow & tell - The mighty hyphen
Show & tell - The mighty hyphen
 
Show & tell - The anatomy of a responsive website
Show & tell - The anatomy of a responsive websiteShow & tell - The anatomy of a responsive website
Show & tell - The anatomy of a responsive website
 
Show & tell - Schema.org
Show & tell - Schema.orgShow & tell - Schema.org
Show & tell - Schema.org
 
Show & tell - Less stuff
Show & tell - Less stuffShow & tell - Less stuff
Show & tell - Less stuff
 
Show & tell - Flex in flux
Show & tell - Flex in fluxShow & tell - Flex in flux
Show & tell - Flex in flux
 
Show & tell - Covert accessibility
Show & tell - Covert accessibilityShow & tell - Covert accessibility
Show & tell - Covert accessibility
 
Show & tell - All the small things
Show & tell - All the small thingsShow & tell - All the small things
Show & tell - All the small things
 
Show & tell - A more accessible accordion
Show & tell - A more accessible accordionShow & tell - A more accessible accordion
Show & tell - A more accessible accordion
 
Show & tell - 16 pixels of pain
Show & tell - 16 pixels of painShow & tell - 16 pixels of pain
Show & tell - 16 pixels of pain
 

Recently uploaded

Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 

Recently uploaded (20)

Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 

S&T Ess Vee Gee 211016

  • 2. “So what actually is an SVG Dad?” “Well Bobby, SVG is…”
  • 3. JPG PNG GIF SVG SVG (Scaleable Vector Graphics) is a vector file format. It’s XML-based and kinda not actually an image per se. It can be used to display images and a whole lot more besides…
  • 4. SVG JPG PNG GIF The power of SVG comes from its flexibility. As we can easily access the structure of the SVG we can reference individual parts, change colours, create dynamic text and even animate. You can embed images within an SVG but that’s not really the point.
  • 5. Full support from Chrome 49 onwards Full support from Safari 9.1 onwards Flawed implementation from IE9 to IE11 but it kinda works Full support from Edge 13 onwards Full support from Firefox 47 onwards
  • 6. We use SVG on the site to deliver high-res University logos. It did have a PNG fallback for older browsers but support is good enough now for this to be removed. Splendid. In use?
  • 8. BOUNTY!The first person to bring me an example of an SVG from our site that only contains an embedded image will win a prize*. *Prize will be rubbish and not worth more than 30p
  • 9. An SVG sprite is a single SVG file that contains multiple paths and shapes that can be displayed/manipulated together or independently of one another. A common use case for sprites, SVG or not, are icon sets. SVG sprites
  • 10. I want to use an SVG sprite to deliver optimised brand assets.
  • 11. Fewer HTTP requests, A single file for maintenance, centralised optimisation of multiple elements… It’s pretty cool! In an SVG sprite we can simply give a group of paths an identifier (id) and then reference that like a normal image in our HTML. Why sprite? <img src="svg/uob-logos/uob-logo-optimised.svg#logo- reversed" alt="The University of Bath logo, reversed"> Simples :-)
  • 12. The Sulis head icon described with SVG paths. OMG!
  • 13. “Optimising an SVG is a lot like formatting a beautiful HTML page…”
  • 14. Optimisation is just stripping out everything we don’t need:
 Redundant groups, unnecessary IDs, duff paths, transforms etc.
  • 15. Our SVG workflow needs to have a hand-crafting stage at the mo. Sketch Other vector illustration packages
 are available SVGsus It really is called SVGsus. This is the initial optimisation stage Hands Reformatting by hand, adding comments and cleaning up
  • 16. Obviously reducing these steps would be great. At the moment making an optimised SVG is a fairly inefficient process. What we really want is some kind of automation with Grunt, our Javascript task runner. However automated SVG optimisation tends to be quite aggressive. It likes strip out #ids - We need these as identifiers for the fragments. There’s probably configuration that can sort this. Automation
  • 17. Combine SVG with srcset to deliver responsive University branding Automate as much of our SVG generation workflow as possible Benchmark performance of SVGs The future
  • 18.
  • 19. Phones out, time to tweet. The champagne story is complete. .@uniofbathdmc shipped “Changing associated item not reflected in parent”.
 Champagne to Claverton Down please @rossferg 🍾 #cursedstory