Slide 1

Slide 1 text

THE BIG PICTURE . responsive images in action PRESENTED BY MATTHIAS LAU

Slide 2

Slide 2 text

{ name: "Matthias Lau", link: "http://laumatthias.de", twitter: "@matthiaslau", hometown: { name: "Hamburg, Germany" }, bio: "E-Commerce Freak and Web-Allrounder, love coding, awesome internet concepts, Chrome, Web Frameworks, Evernote, the Apple Multi-Touch Trackpad, Bouldering, Wikipedia and Espresso.", work: { employer: { name: "Jimdo" }, }, }

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

A LOT! OPTIMIZED THEY

Slide 6

Slide 6 text

! FOR SMALL VIEWPORTS LARGE IMAGES STILL...

Slide 7

Slide 7 text

! WANT! WE WHAT

Slide 8

Slide 8 text

IMAGES OPTIMIZED

Slide 9

Slide 9 text

IMAGES OPTIMIZED

Slide 10

Slide 10 text

IMAGES OPTIMIZED

Slide 11

Slide 11 text

! DIRECTION ART

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

! IMAGES FAST

Slide 15

Slide 15 text

! JAVASCRIPT IT SHOULD ALSO WORK WITHOUT

Slide 16

Slide 16 text

CACHING / CDN

Slide 17

Slide 17 text

! CODE SIMPLE

Slide 18

Slide 18 text

TECHNIQUES RESPONSIVE IMAGE http://matthiaslau.github.io/responsive-images/

Slide 19

Slide 19 text

SVG´s USE

Slide 20

Slide 20 text

BACKGROUNDS CSS

Slide 21

Slide 21 text

BACKGROUNDS CSS #iguazu  {        background-­‐image:  url(small.jpg);   }   @media  screen  and  (min-­‐width:  601px)  {        #iguazu  {              background-­‐image:  url(medium.jpg);        }   }

Slide 22

Slide 22 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 23

Slide 23 text

IT IS A CSS IMAGE

Slide 24

Slide 24 text

ACCESSIBILITY

Slide 25

Slide 25 text

CARS CLOWN

Slide 26

Slide 26 text

Slide 27

Slide 27 text

Slide 28

Slide 28 text

                                             

Slide 29

Slide 29 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 30

Slide 30 text

ADAPTIVE IMAGES RESS / http://adaptive-images.com/

Slide 31

Slide 31 text

JS Cookie viewport width

Slide 32

Slide 32 text

.htaccess image request Scaling Logic best fitting image Cookie

Slide 33

Slide 33 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 34

Slide 34 text

RESIZING SERVICES

Slide 35

Slide 35 text

http://src.sencha.io/320/200/http://[...]/huge-­‐hd.jpg RESIZING SERVICES http://www.sencha.com/learn/how-to-use-src-sencha-io/

Slide 36

Slide 36 text

  ! RESIZING SERVICES

Slide 37

Slide 37 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 38

Slide 38 text

ELEMENT PICTURE SRCSET +

Slide 39

Slide 39 text

                                                           

Iguazu

 

Slide 40

Slide 40 text

Slide 41

Slide 41 text

                                                           

Iguazu

 

Slide 42

Slide 42 text

<3

Slide 43

Slide 43 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 44

Slide 44 text

NO BROWSER SUPPORT YET

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

PICTUREFILL https://github.com/Wilto/picturefill-proposal https://github.com/scottjehl/picturefill

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

SIMPLE CODE FAST NOJS CACHING / CDN ART DIRECTION

Slide 50

Slide 50 text

MORE THERE IS EVEN HiSRC Foresight.js Riloadr rwdImages Retina.js Responsive Enhance Doubletake Content Aware Resizing https://docs.google.com/spreadsheet/ccc?key=0Al0lI17fOl9DdDgxTFVoRzFpV3VCdHk2NTBmdVI2OXc#gid=0 Mobify..js

Slide 51

Slide 51 text

WHAT? a summary NOW

Slide 52

Slide 52 text

WHERE POSSIBLE CSS IMAGES OTHER PICTUREFILL + SVG´s

Slide 53

Slide 53 text

SOMETHING USE please

Slide 54

Slide 54 text

PROCESS THE with grunt

Slide 55

Slide 55 text

grunt original

Slide 56

Slide 56 text

https://github.com/andismith/grunt-responsive-images options:  {        sizes:  [              {                    name:  "s",                    width:  320,                    quality:  0.6              },              {                    name:  "s",                    suffix:  "x2",                    width:  640,                    quality:  0.6              },          […]                                                    ]   }, files:  [{        expand:  true,        cwd:  'img/',        src:  ['*.{jpg,gif,png}'],        dest:  'img/generated/'   }]

Slide 57

Slide 57 text

„Don't click this if on a 3G network, it probably take forever, just check it out when you get home.“

Slide 58

Slide 58 text

CONTEXT-BASED IMAGES forecast:

Slide 59

Slide 59 text

QUESTIONS? http://twitter.com/matthiaslau http://laumatthias.de/ https://www.xing.com/profile/Matthias_Lau