SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
Responsive Images mit TYPO3

  www.opendo.at/philipp_bergsmann
        www.opendo.at/georg_paul


       www.opendo.at                1
Vorschau

●   Responsive Web Design?
●   Was sind Responsive Images?
●   Best Practices
●   Unsere Technik
●   responsive_typo3




                       www.opendo.at   2
Responsive Web Design?

●   Responsive Web Design heißt, eine Website für die
    Auflösung 1024 x 768 für Desktop-Computer zu
    optimieren... NOT
●   Responsive Web Design heißt, eine Website für
    unterschiedliche Auflösungen und Devices zu
    optimieren.




                         www.opendo.at                  3
Was sind Responsive Images?

●   Bilder werden in unterschiedlichen Auflösungen
    bereitgestellt
●   je nachdem mit welcher Auflösung der User auf
    der Website surft, bekommt er
    dementsprechend große/kleine Bilder
●   Vorteil: geringere Dateigrößen und dadurch eine
    schnellere Website (speziell bei mobile ein
    Thema)




                         www.opendo.at                4
Best Practices

Filament group
The technique consists of a few key files: rwd-images.js, rwd.gif, and
some .htaccess directives.


Nachteile:
●   Liefert nur 2 unterschiedliche Bildgrößen
●   „unnötiger“ Download vom rwd.gif (nicht schlimm)


    Aber ansonsten sicher eine gute Lösung!




                                   www.opendo.at                         5
Best Practices

adaptive-images.com
Adaptive Images detects your visitor's screen size and automatically
creates, caches, and delivers device appropriate re-scaled versions of
your web page's embeded HTML images.


Nachteile:
●   UA-Sniffing




                                  www.opendo.at                          6
Best Practices

Craig Russel
I’ve developed a technique that uses a server side script (in PHP) to
serve up images of several different resolutions. It requires only a small
amount of JavaScript and can scale quite easily.


Nachteile:
●   lt. Demopage würde es nur für ein Bild funktionieren, generell zu
    statisch




                                    www.opendo.at                            7
Best Practices


●   Und viele mehr...




                        www.opendo.at   8
Unsere Technik

<noscript class="responsive-image" data-
fullsize="logo.png" >
<img src="logo.png" width="130" height="40"
alt="" />
</noscript>

http://headlondon.com/our-thoughts/technology/posts/creating-responsive-images-
using-the-noscript-tag




                                      www.opendo.at                               9
Was passiert am Server?

●   ...




                  www.opendo.at   10
Was passiert am Client?

$(document).ready(function(){
$('noscript.responsive-image').convertToImage();
$('img.responsive-image').getResponsiveSize();
});




                       www.opendo.at               11
Vorteile

●   Exakte Größe (nicht nur 2 Versionen)
●   Browser muss nicht skalieren
●   Größenangaben via CSS (beliebige Größen in
    unterschiedlichen Kontext)
●   Flexibilität am Client (Bildgenerierung via JS steuerbar)
●   Kein UA-Sniffing, keine cookies
●   Bilder werden von Google indiziert           („opendo
    österreich wein“)



                                 www.opendo.at                  12
Nachteile

●   Nicht stable
●   Bildqualität (hat mit der Technik aber nichts zu tun)
●   Serverauslastung




                               www.opendo.at                13
Danke - Fragen?


   TYPO3 Extension Responsive TYPO3
http://forge.typo3.org/projects/show/extension-
                responsive_typo3


     www.opendo.at/philipp_bergsmann
         www.opendo.at/georg_paul


                   www.opendo.at                  14

Weitere ähnliche Inhalte

Empfohlen

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Empfohlen (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

opendo-TUGA19: extension_responsive-typo3_2012-01-09

  • 1. Responsive Images mit TYPO3 www.opendo.at/philipp_bergsmann www.opendo.at/georg_paul www.opendo.at 1
  • 2. Vorschau ● Responsive Web Design? ● Was sind Responsive Images? ● Best Practices ● Unsere Technik ● responsive_typo3 www.opendo.at 2
  • 3. Responsive Web Design? ● Responsive Web Design heißt, eine Website für die Auflösung 1024 x 768 für Desktop-Computer zu optimieren... NOT ● Responsive Web Design heißt, eine Website für unterschiedliche Auflösungen und Devices zu optimieren. www.opendo.at 3
  • 4. Was sind Responsive Images? ● Bilder werden in unterschiedlichen Auflösungen bereitgestellt ● je nachdem mit welcher Auflösung der User auf der Website surft, bekommt er dementsprechend große/kleine Bilder ● Vorteil: geringere Dateigrößen und dadurch eine schnellere Website (speziell bei mobile ein Thema) www.opendo.at 4
  • 5. Best Practices Filament group The technique consists of a few key files: rwd-images.js, rwd.gif, and some .htaccess directives. Nachteile: ● Liefert nur 2 unterschiedliche Bildgrößen ● „unnötiger“ Download vom rwd.gif (nicht schlimm) Aber ansonsten sicher eine gute Lösung! www.opendo.at 5
  • 6. Best Practices adaptive-images.com Adaptive Images detects your visitor's screen size and automatically creates, caches, and delivers device appropriate re-scaled versions of your web page's embeded HTML images. Nachteile: ● UA-Sniffing www.opendo.at 6
  • 7. Best Practices Craig Russel I’ve developed a technique that uses a server side script (in PHP) to serve up images of several different resolutions. It requires only a small amount of JavaScript and can scale quite easily. Nachteile: ● lt. Demopage würde es nur für ein Bild funktionieren, generell zu statisch www.opendo.at 7
  • 8. Best Practices ● Und viele mehr... www.opendo.at 8
  • 9. Unsere Technik <noscript class="responsive-image" data- fullsize="logo.png" > <img src="logo.png" width="130" height="40" alt="" /> </noscript> http://headlondon.com/our-thoughts/technology/posts/creating-responsive-images- using-the-noscript-tag www.opendo.at 9
  • 10. Was passiert am Server? ● ... www.opendo.at 10
  • 11. Was passiert am Client? $(document).ready(function(){ $('noscript.responsive-image').convertToImage(); $('img.responsive-image').getResponsiveSize(); }); www.opendo.at 11
  • 12. Vorteile ● Exakte Größe (nicht nur 2 Versionen) ● Browser muss nicht skalieren ● Größenangaben via CSS (beliebige Größen in unterschiedlichen Kontext) ● Flexibilität am Client (Bildgenerierung via JS steuerbar) ● Kein UA-Sniffing, keine cookies ● Bilder werden von Google indiziert („opendo österreich wein“) www.opendo.at 12
  • 13. Nachteile ● Nicht stable ● Bildqualität (hat mit der Technik aber nichts zu tun) ● Serverauslastung www.opendo.at 13
  • 14. Danke - Fragen? TYPO3 Extension Responsive TYPO3 http://forge.typo3.org/projects/show/extension- responsive_typo3 www.opendo.at/philipp_bergsmann www.opendo.at/georg_paul www.opendo.at 14