SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Using SVG Graphics to Make the
World Wide Web a Better Place
Patrick Hund, mobile.de
@wiekatz
What’s all this, then?
ble_Vector_Graphics
ala
.wikipedia.org/wiki/Sc
http://en

Source: Wikipedia
Markup for Defining Graphics
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg">
<!-- face -->
<circle fill="#FFFF00"
stroke="#000000"
stroke-width="10"
stroke-miterlimit="10"
cx="382.553" cy="306.786" r="217.961"/>
<!-- mouth -->
<path fill="#FFFF00"
stroke="#000000"
stroke-width="10"
stroke-miterlimit="10"
d="M244.689,329.602 C315.563,498.534,484.495,479.116,531.583,333"/>
<!-- eyes -->
<ellipse cx="337.592" cy=„233.485“ rx="21.359" ry="49.272"/>
<ellipse cx="422.592" cy=„232.485“ rx="21.359" ry="49.272"/>
</svg>
Why Should I Care?
•

Scalable - no more different versions for responsive
web design and retina

•

Light-weight files (use compression for complex
files)

•

SVG markup can be manipulated for animation and
user interaction
What About Browser Compatibility?
http://caniuse.com/svg

Source: caniuse.com
Fallbacks
Modernizr is your friend!
http://modernizr.com/

Source:
modernizr.com

Source (German):
http://blog.kulturbanause.de/2013/09/svg-mit-png-fallback/
Now for the fun part!
aeljs.com
Source: raph

Source: snap
sv

g.io

+,
afari 3.0+, Chrome 5.0
S
supports Firefox 3.0+,
+ and Internet Explore
Opera 9.5

r 6.0+

Dmitry Baranovskiy
@DmitryBaranovsk
apsvg.io
ource: sn
S

Source: dmitry.baranovskiy.com
Source: Wikipedia

(+) so much cooler!
(-) early version (0.3)
(-) sparse code examples in docu
Thank You!
GitHub: github.com/pahund
Twitter: @wiekatz
Blog: technology.ebay.de
Email: pahund@team.mobile.de
Special thanks to Martina Freundorfer for a great pairing
session to prepare this talk - Twitter: @heartbeaz

Weitere ähnliche Inhalte

Ähnlich wie Using SVG Graphics to Make the World Wide Web a Better Place

MOConf'13: WebNotBombs: Optimize this
MOConf'13: WebNotBombs: Optimize thisMOConf'13: WebNotBombs: Optimize this
MOConf'13: WebNotBombs: Optimize this
Boris Zapolsky
 
HTML5 and SVG
HTML5 and SVGHTML5 and SVG
HTML5 and SVG
yarcub
 

Ähnlich wie Using SVG Graphics to Make the World Wide Web a Better Place (20)

SVG for JS Oxford
SVG for JS OxfordSVG for JS Oxford
SVG for JS Oxford
 
SVG overview
SVG overviewSVG overview
SVG overview
 
SVG and the web
SVG and the webSVG and the web
SVG and the web
 
MOConf'13: WebNotBombs: Optimize this
MOConf'13: WebNotBombs: Optimize thisMOConf'13: WebNotBombs: Optimize this
MOConf'13: WebNotBombs: Optimize this
 
SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)
 
Thats Not Flash?
Thats Not Flash?Thats Not Flash?
Thats Not Flash?
 
Web Vector Graphics
Web Vector GraphicsWeb Vector Graphics
Web Vector Graphics
 
SVG (Framsia, 27-SEP-2011)
SVG (Framsia, 27-SEP-2011)SVG (Framsia, 27-SEP-2011)
SVG (Framsia, 27-SEP-2011)
 
HTML5 تکنولوژی های موجود در
HTML5 تکنولوژی های موجود در HTML5 تکنولوژی های موجود در
HTML5 تکنولوژی های موجود در
 
HTML5 - A Whirlwind tour
HTML5 - A Whirlwind tourHTML5 - A Whirlwind tour
HTML5 - A Whirlwind tour
 
STC Summit 2015 Hypergraphics for visual-first help
STC Summit 2015 Hypergraphics for visual-first helpSTC Summit 2015 Hypergraphics for visual-first help
STC Summit 2015 Hypergraphics for visual-first help
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
Svcc 2013-d3
Svcc 2013-d3Svcc 2013-d3
Svcc 2013-d3
 
SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)
 
WordCamp Birmingham - Dynamic SVGs with WordPress
WordCamp Birmingham - Dynamic SVGs with WordPressWordCamp Birmingham - Dynamic SVGs with WordPress
WordCamp Birmingham - Dynamic SVGs with WordPress
 
SVG introduction
SVG   introductionSVG   introduction
SVG introduction
 
HTML5, the new buzzword
HTML5, the new buzzwordHTML5, the new buzzword
HTML5, the new buzzword
 
Level ofdetail
Level ofdetailLevel ofdetail
Level ofdetail
 
Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)
 
HTML5 and SVG
HTML5 and SVGHTML5 and SVG
HTML5 and SVG
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

Using SVG Graphics to Make the World Wide Web a Better Place

  • 1. Using SVG Graphics to Make the World Wide Web a Better Place Patrick Hund, mobile.de @wiekatz
  • 2. What’s all this, then? ble_Vector_Graphics ala .wikipedia.org/wiki/Sc http://en Source: Wikipedia
  • 3. Markup for Defining Graphics <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"> <!-- face --> <circle fill="#FFFF00" stroke="#000000" stroke-width="10" stroke-miterlimit="10" cx="382.553" cy="306.786" r="217.961"/> <!-- mouth --> <path fill="#FFFF00" stroke="#000000" stroke-width="10" stroke-miterlimit="10" d="M244.689,329.602 C315.563,498.534,484.495,479.116,531.583,333"/> <!-- eyes --> <ellipse cx="337.592" cy=„233.485“ rx="21.359" ry="49.272"/> <ellipse cx="422.592" cy=„232.485“ rx="21.359" ry="49.272"/> </svg>
  • 4. Why Should I Care? • Scalable - no more different versions for responsive web design and retina • Light-weight files (use compression for complex files) • SVG markup can be manipulated for animation and user interaction
  • 5. What About Browser Compatibility? http://caniuse.com/svg Source: caniuse.com
  • 6. Fallbacks Modernizr is your friend! http://modernizr.com/ Source: modernizr.com Source (German): http://blog.kulturbanause.de/2013/09/svg-mit-png-fallback/
  • 7. Now for the fun part! aeljs.com Source: raph Source: snap sv g.io +, afari 3.0+, Chrome 5.0 S supports Firefox 3.0+, + and Internet Explore Opera 9.5 r 6.0+ Dmitry Baranovskiy @DmitryBaranovsk apsvg.io ource: sn S Source: dmitry.baranovskiy.com Source: Wikipedia (+) so much cooler! (-) early version (0.3) (-) sparse code examples in docu
  • 8. Thank You! GitHub: github.com/pahund Twitter: @wiekatz Blog: technology.ebay.de Email: pahund@team.mobile.de Special thanks to Martina Freundorfer for a great pairing session to prepare this talk - Twitter: @heartbeaz