SlideShare a Scribd company logo
1 of 41
Download to read offline
Managing Images in
Large Scale Drupal
Websites
Today’s
Agenda
1. Taking Inventory of Images
2. Planning images usage
3. Art Direction is the exception
4. <picture> tag
5. Image Styles & Responsive Image Styles
6. Demo
7. Q & A
About Mediacurrent
Who We Are
Our people our impelled to constantly
improve technology for our clients.
Our Mission
To bring together the most talented team
members to provide world-class solutions
for the web.
● Over 10 years of Drupal and Front-End Experience
● Trainer and Speaker
● Co-Host of Mediacurrent’s Open Waters Podcast
Mario Hernandez
Head of Learning
marioRHernandez
iMarioHernandez
This Session is For
| 7
Site Builders Developers Content Managers
Who want an improved
Content Editing experience
Who want to have a better
understanding on what
technique to use per each
use case.
Who need the flexibility to
provide the best images at
any breakpoint
Learn how to serve the
right image at all times
and to all devices.
Learn the two ways in
which images are served
on a website.
How to effectively
manage image styles
and responsive image
styles.
Goals of the Session
| 8
| 9
Taking
Inventory of
Images
| 10
| 11
| 12
| 13
Image Styles
| 14
Images Styles: Best Practices
● Take full stock of entire site image requirements (if possible)
● Avoid creating image styles before fully understanding the images
requirements
● Whenever possible build reusable image styles (no one offs)
● Aspect ratios are your friend
● Use descriptive names but not directly associated to a specific image
or pages on the site
● Use multipliers (i.e. 2x)
| 15
Images Styles: Naming Conventions
Bad name
Homepage Article Image
homepage_article_image
● Too vague
● Lacks dimensions or aspect ratio info
● Too restrictive
Good name
16:9 Max 720px
16_9_max_720
● Can be used across entire site where
aspect ratio and dimensions are met
● Not associated with specific page or
image
● Reusable
| 16
Images Styles: Naming Conventions
Bad name
Home Image Thumb Wide
home_image_thumb_wide
● Restricted to only one image type
● Restricts usage to only homepage
● Lacks dimensions or aspect ratio info
Good name
4:3 Max 300px
4_3_max_300
● Can be used on any image with a 4:3
aspect ratio that meets size
requirements
● Not restricted to homepage
● Potentially reduces number of image
styles
| 17
Responsive
Image Styles
| 18
Responsive Images Styles:
Naming conventions
● Not as strict as naming image styles
● Image style names should target images types
● RESPONSIVE image styles names should target Use Cases
Example:
● Bad: Homepage Gallery Images 1600x750
● Good: Image Gallery or Gallery
| 19
Responsive Image Styles
Image style
Image style
Image style
Responsive Images Styles:
Not the same as Image Styles
| 20
Responsive Images Styles:
Naming conventions
16:9 Max 460px 16:9 Max 960px 16:9 Max 1400px
Gallery
| 21
Art Direction
| 22
Art Direction
| 23
Art Direction: <picture> Element
| 24
Art Direction: <picture> Element
| 25
Art Direction: Breakpoints
| 26
Browser Support
| 27
Identifying the Gap
Variable
Things developers know during
development
Things the browser knows
when rendering images
Viewport dimensions NO YES
Image size relative to viewport YES NO
Screen density NO YES
Images dimensions YES NO
| 28
Switch
Resolution
(most cases)
#BLM
| 29
Photo by Terricks Noah
#BLM
| 30
Letting the Browser do the Work
<img sizes=" " srcset=" " alt=" " />
| 31
Letting the Browser do the Work
<img sizes="(min-width: 720px) 50vw, 100vw"
srcset="small.jpg 720w, medium.jpg 1200w, large.jpg 1900w"
alt="Everything is awesome!" />
| 32
Rendering
| 33
Letting the Browser do the Work
<img sizes="100vw"
srcset="small.jpg 720w, medium.jpg 1200w, large.jpg 1900w"
alt="Everything is awesome!" />
| 34
Rendering
| 35
Variable
Things developers know during
development
Things the browser knows
when rendering images
Viewport dimensions NO YES
Image size relative to viewport YES NO YES! via sizes
Screen density NO YES
Images dimensions YES NO YES! via srcset
Closing the Gap
| 36
Documenting
Image Styles
| 37
| 38
Resources
Responsive Images 101 - 9 Part Series
https://cloudfour.com/thinks/responsive-images-101-definitions/
Srcset and Sizes
http://ericportis.com/posts/2014/srcset-sizes/
Responsive Images in Drupal using srcset and sizes
https://chromatichq.com/blog/responsive-images-drupal-8-using-srcset
The unexpected power of Viewport unit in CSS
https://www.lullabot.com/articles/unexpected-power-of-viewport-units-in-css
Image Widget Crop Module (Video tutorial)
https://www.youtube.com/watch?v=lvj9MEEAs6s
| 39| 39
Demo Time!
| 40| 40
Your Feedback is
Valuable!
Thank you!
@Mediacurrent
Mediacurrent @Mediacurrent
MediacurrentDrupal
Mediacurrent.com
@Mediacurrent

More Related Content

What's hot

Rain + GatsbyJS: Fast-Tracking to Drupal
Rain + GatsbyJS: Fast-Tracking to Drupal Rain + GatsbyJS: Fast-Tracking to Drupal
Rain + GatsbyJS: Fast-Tracking to Drupal Mediacurrent
 
Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Mediacurrent
 
Drupal Security: What You Need to Know
Drupal Security: What You Need to KnowDrupal Security: What You Need to Know
Drupal Security: What You Need to KnowMediacurrent
 
Creating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalCreating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalMediacurrent
 
Leveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsLeveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsMediacurrent
 
How to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalHow to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalMediacurrent
 
Fishbowl Opc.Com Presentation
Fishbowl   Opc.Com PresentationFishbowl   Opc.Com Presentation
Fishbowl Opc.Com PresentationAIIM Minnesota
 
What to Expect in Drupal 8
What to Expect in Drupal 8What to Expect in Drupal 8
What to Expect in Drupal 8Mediacurrent
 
Google Optimize: How Mass.gov Builds Great Government UX
Google Optimize: How Mass.gov Builds Great Government UXGoogle Optimize: How Mass.gov Builds Great Government UX
Google Optimize: How Mass.gov Builds Great Government UXMediacurrent
 
Level Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesLevel Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesMediacurrent
 
Is Drupal Right for Universities?
Is Drupal Right for Universities?Is Drupal Right for Universities?
Is Drupal Right for Universities?Mediacurrent
 
Improve the ROI of Your Drupal Site
Improve the ROI of Your Drupal SiteImprove the ROI of Your Drupal Site
Improve the ROI of Your Drupal SiteMediacurrent
 
Delivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdDelivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdMediacurrent
 
Starting & growing a drupal based business- 6 valuable lessons i have learned
Starting & growing a drupal based business- 6 valuable lessons i have learnedStarting & growing a drupal based business- 6 valuable lessons i have learned
Starting & growing a drupal based business- 6 valuable lessons i have learnedMediacurrent
 
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8Habitat for Humanity and Mediacurrent: Expanding with Drupal 8
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8Mediacurrent
 
Planning & Executing Custom Drupal Integration Projects
Planning & Executing Custom Drupal Integration ProjectsPlanning & Executing Custom Drupal Integration Projects
Planning & Executing Custom Drupal Integration ProjectsAchieve Internet
 
Helping the LatinGRAMMYs Reach a Global Audience
Helping the LatinGRAMMYs Reach a Global Audience Helping the LatinGRAMMYs Reach a Global Audience
Helping the LatinGRAMMYs Reach a Global Audience Achieve Internet
 
Gsdc intro session
Gsdc intro sessionGsdc intro session
Gsdc intro sessionMiljanorevi1
 
DSC Aswan University info session
DSC Aswan University info sessionDSC Aswan University info session
DSC Aswan University info sessionAhmedHany131
 
Starting & Growing a Drupal Based Business
Starting & Growing a Drupal Based BusinessStarting & Growing a Drupal Based Business
Starting & Growing a Drupal Based BusinessMediacurrent
 

What's hot (20)

Rain + GatsbyJS: Fast-Tracking to Drupal
Rain + GatsbyJS: Fast-Tracking to Drupal Rain + GatsbyJS: Fast-Tracking to Drupal
Rain + GatsbyJS: Fast-Tracking to Drupal
 
Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan
 
Drupal Security: What You Need to Know
Drupal Security: What You Need to KnowDrupal Security: What You Need to Know
Drupal Security: What You Need to Know
 
Creating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalCreating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to Drupal
 
Leveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsLeveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web Projects
 
How to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalHow to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with Drupal
 
Fishbowl Opc.Com Presentation
Fishbowl   Opc.Com PresentationFishbowl   Opc.Com Presentation
Fishbowl Opc.Com Presentation
 
What to Expect in Drupal 8
What to Expect in Drupal 8What to Expect in Drupal 8
What to Expect in Drupal 8
 
Google Optimize: How Mass.gov Builds Great Government UX
Google Optimize: How Mass.gov Builds Great Government UXGoogle Optimize: How Mass.gov Builds Great Government UX
Google Optimize: How Mass.gov Builds Great Government UX
 
Level Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesLevel Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best Practices
 
Is Drupal Right for Universities?
Is Drupal Right for Universities?Is Drupal Right for Universities?
Is Drupal Right for Universities?
 
Improve the ROI of Your Drupal Site
Improve the ROI of Your Drupal SiteImprove the ROI of Your Drupal Site
Improve the ROI of Your Drupal Site
 
Delivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdDelivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher Ed
 
Starting & growing a drupal based business- 6 valuable lessons i have learned
Starting & growing a drupal based business- 6 valuable lessons i have learnedStarting & growing a drupal based business- 6 valuable lessons i have learned
Starting & growing a drupal based business- 6 valuable lessons i have learned
 
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8Habitat for Humanity and Mediacurrent: Expanding with Drupal 8
Habitat for Humanity and Mediacurrent: Expanding with Drupal 8
 
Planning & Executing Custom Drupal Integration Projects
Planning & Executing Custom Drupal Integration ProjectsPlanning & Executing Custom Drupal Integration Projects
Planning & Executing Custom Drupal Integration Projects
 
Helping the LatinGRAMMYs Reach a Global Audience
Helping the LatinGRAMMYs Reach a Global Audience Helping the LatinGRAMMYs Reach a Global Audience
Helping the LatinGRAMMYs Reach a Global Audience
 
Gsdc intro session
Gsdc intro sessionGsdc intro session
Gsdc intro session
 
DSC Aswan University info session
DSC Aswan University info sessionDSC Aswan University info session
DSC Aswan University info session
 
Starting & Growing a Drupal Based Business
Starting & Growing a Drupal Based BusinessStarting & Growing a Drupal Based Business
Starting & Growing a Drupal Based Business
 

Similar to Managing Images In Large Scale Drupal 8 & 9 Websites

Drupalcon Asia - "Drupal 8 Mobile in its DNA"
Drupalcon Asia - "Drupal 8 Mobile in its DNA"Drupalcon Asia - "Drupal 8 Mobile in its DNA"
Drupalcon Asia - "Drupal 8 Mobile in its DNA"Ram Singh
 
Responsive Web Design
Responsive Web Design Responsive Web Design
Responsive Web Design CLEVER°FRANKE
 
Responsive Web design Zambig
Responsive Web design ZambigResponsive Web design Zambig
Responsive Web design ZambigTribune Media
 
Prairie Dev Con West - 2012-03-15 - Responsive Web Design
Prairie Dev Con West - 2012-03-15 - Responsive Web DesignPrairie Dev Con West - 2012-03-15 - Responsive Web Design
Prairie Dev Con West - 2012-03-15 - Responsive Web DesignFrédéric Harper
 
FITC - Exploring Art-Directed Responsive Images
FITC - Exploring Art-Directed Responsive ImagesFITC - Exploring Art-Directed Responsive Images
FITC - Exploring Art-Directed Responsive ImagesRami Sayar
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteJj Jurgens
 
Word press gets responsive 4x3
Word press gets responsive 4x3Word press gets responsive 4x3
Word press gets responsive 4x3Edmund Turbin
 
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesImages blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesWey Wey Web
 
Secrets of responsive web design by Sameera Thilakasiri
Secrets of responsive web design by Sameera ThilakasiriSecrets of responsive web design by Sameera Thilakasiri
Secrets of responsive web design by Sameera ThilakasiriSameera Thilakasiri
 
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Frédéric Harper
 
FITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFrédéric Harper
 
Responsive images in Drupal 8
Responsive images in Drupal 8Responsive images in Drupal 8
Responsive images in Drupal 8Mario Hernandez
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoEmma Jane Hogbin Westby
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemsDigital Systems
 

Similar to Managing Images In Large Scale Drupal 8 & 9 Websites (20)

Design responsively
Design responsivelyDesign responsively
Design responsively
 
Drupalcon Asia - "Drupal 8 Mobile in its DNA"
Drupalcon Asia - "Drupal 8 Mobile in its DNA"Drupalcon Asia - "Drupal 8 Mobile in its DNA"
Drupalcon Asia - "Drupal 8 Mobile in its DNA"
 
Responsive Web Design
Responsive Web Design Responsive Web Design
Responsive Web Design
 
Responsive Web design Zambig
Responsive Web design ZambigResponsive Web design Zambig
Responsive Web design Zambig
 
Prairie Dev Con West - 2012-03-15 - Responsive Web Design
Prairie Dev Con West - 2012-03-15 - Responsive Web DesignPrairie Dev Con West - 2012-03-15 - Responsive Web Design
Prairie Dev Con West - 2012-03-15 - Responsive Web Design
 
FITC - Exploring Art-Directed Responsive Images
FITC - Exploring Art-Directed Responsive ImagesFITC - Exploring Art-Directed Responsive Images
FITC - Exploring Art-Directed Responsive Images
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
 
Word press gets responsive 4x3
Word press gets responsive 4x3Word press gets responsive 4x3
Word press gets responsive 4x3
 
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesImages blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
 
Secrets of responsive web design by Sameera Thilakasiri
Secrets of responsive web design by Sameera ThilakasiriSecrets of responsive web design by Sameera Thilakasiri
Secrets of responsive web design by Sameera Thilakasiri
 
Grey muzzle-case-study
Grey muzzle-case-studyGrey muzzle-case-study
Grey muzzle-case-study
 
Presentation
PresentationPresentation
Presentation
 
Web Designing
Web  DesigningWeb  Designing
Web Designing
 
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
 
FITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web Design
 
Responsive images in Drupal 8
Responsive images in Drupal 8Responsive images in Drupal 8
Responsive images in Drupal 8
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS Expo
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systems
 
Ppt ch08
Ppt ch08Ppt ch08
Ppt ch08
 

More from Mediacurrent

Penn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyPenn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyMediacurrent
 
Evolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdEvolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdMediacurrent
 
Penn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsPenn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsMediacurrent
 
Content Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceContent Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceMediacurrent
 
Reimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyReimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyMediacurrent
 
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesHow to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesMediacurrent
 
The Nonprofits' Guide to Content Strategy
The Nonprofits' Guide to Content StrategyThe Nonprofits' Guide to Content Strategy
The Nonprofits' Guide to Content StrategyMediacurrent
 
How We Win With Agile
How We Win With Agile How We Win With Agile
How We Win With Agile Mediacurrent
 
Georgia Tech's Strategic Drupal Redesign
Georgia Tech's Strategic Drupal Redesign Georgia Tech's Strategic Drupal Redesign
Georgia Tech's Strategic Drupal Redesign Mediacurrent
 
Marketing Attribution Modeling
Marketing Attribution ModelingMarketing Attribution Modeling
Marketing Attribution ModelingMediacurrent
 
Mediacurrent Introduction to Emotional Design 2019
Mediacurrent Introduction to Emotional Design 2019Mediacurrent Introduction to Emotional Design 2019
Mediacurrent Introduction to Emotional Design 2019Mediacurrent
 
InteractUSG: Intelligent UX in Human Centered Design
InteractUSG: Intelligent UX in Human Centered DesignInteractUSG: Intelligent UX in Human Centered Design
InteractUSG: Intelligent UX in Human Centered DesignMediacurrent
 

More from Mediacurrent (12)

Penn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyPenn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with Gatsby
 
Evolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdEvolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher Ed
 
Penn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsPenn State scales static Drupal to new heights
Penn State scales static Drupal to new heights
 
Content Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceContent Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your Audience
 
Reimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyReimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web Strategy
 
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesHow to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
 
The Nonprofits' Guide to Content Strategy
The Nonprofits' Guide to Content StrategyThe Nonprofits' Guide to Content Strategy
The Nonprofits' Guide to Content Strategy
 
How We Win With Agile
How We Win With Agile How We Win With Agile
How We Win With Agile
 
Georgia Tech's Strategic Drupal Redesign
Georgia Tech's Strategic Drupal Redesign Georgia Tech's Strategic Drupal Redesign
Georgia Tech's Strategic Drupal Redesign
 
Marketing Attribution Modeling
Marketing Attribution ModelingMarketing Attribution Modeling
Marketing Attribution Modeling
 
Mediacurrent Introduction to Emotional Design 2019
Mediacurrent Introduction to Emotional Design 2019Mediacurrent Introduction to Emotional Design 2019
Mediacurrent Introduction to Emotional Design 2019
 
InteractUSG: Intelligent UX in Human Centered Design
InteractUSG: Intelligent UX in Human Centered DesignInteractUSG: Intelligent UX in Human Centered Design
InteractUSG: Intelligent UX in Human Centered Design
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
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 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
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 productivityPrincipled Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
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 DevelopmentsTrustArc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Managing Images In Large Scale Drupal 8 & 9 Websites

  • 1. Managing Images in Large Scale Drupal Websites
  • 2. Today’s Agenda 1. Taking Inventory of Images 2. Planning images usage 3. Art Direction is the exception 4. <picture> tag 5. Image Styles & Responsive Image Styles 6. Demo 7. Q & A
  • 4. Who We Are Our people our impelled to constantly improve technology for our clients.
  • 5. Our Mission To bring together the most talented team members to provide world-class solutions for the web.
  • 6. ● Over 10 years of Drupal and Front-End Experience ● Trainer and Speaker ● Co-Host of Mediacurrent’s Open Waters Podcast Mario Hernandez Head of Learning marioRHernandez iMarioHernandez
  • 7. This Session is For | 7 Site Builders Developers Content Managers Who want an improved Content Editing experience Who want to have a better understanding on what technique to use per each use case. Who need the flexibility to provide the best images at any breakpoint
  • 8. Learn how to serve the right image at all times and to all devices. Learn the two ways in which images are served on a website. How to effectively manage image styles and responsive image styles. Goals of the Session | 8
  • 10. | 10
  • 11. | 11
  • 12. | 12
  • 14. | 14 Images Styles: Best Practices ● Take full stock of entire site image requirements (if possible) ● Avoid creating image styles before fully understanding the images requirements ● Whenever possible build reusable image styles (no one offs) ● Aspect ratios are your friend ● Use descriptive names but not directly associated to a specific image or pages on the site ● Use multipliers (i.e. 2x)
  • 15. | 15 Images Styles: Naming Conventions Bad name Homepage Article Image homepage_article_image ● Too vague ● Lacks dimensions or aspect ratio info ● Too restrictive Good name 16:9 Max 720px 16_9_max_720 ● Can be used across entire site where aspect ratio and dimensions are met ● Not associated with specific page or image ● Reusable
  • 16. | 16 Images Styles: Naming Conventions Bad name Home Image Thumb Wide home_image_thumb_wide ● Restricted to only one image type ● Restricts usage to only homepage ● Lacks dimensions or aspect ratio info Good name 4:3 Max 300px 4_3_max_300 ● Can be used on any image with a 4:3 aspect ratio that meets size requirements ● Not restricted to homepage ● Potentially reduces number of image styles
  • 18. | 18 Responsive Images Styles: Naming conventions ● Not as strict as naming image styles ● Image style names should target images types ● RESPONSIVE image styles names should target Use Cases Example: ● Bad: Homepage Gallery Images 1600x750 ● Good: Image Gallery or Gallery
  • 19. | 19 Responsive Image Styles Image style Image style Image style Responsive Images Styles: Not the same as Image Styles
  • 20. | 20 Responsive Images Styles: Naming conventions 16:9 Max 460px 16:9 Max 960px 16:9 Max 1400px Gallery
  • 23. | 23 Art Direction: <picture> Element
  • 24. | 24 Art Direction: <picture> Element
  • 25. | 25 Art Direction: Breakpoints
  • 27. | 27 Identifying the Gap Variable Things developers know during development Things the browser knows when rendering images Viewport dimensions NO YES Image size relative to viewport YES NO Screen density NO YES Images dimensions YES NO
  • 29. | 29 Photo by Terricks Noah #BLM
  • 30. | 30 Letting the Browser do the Work <img sizes=" " srcset=" " alt=" " />
  • 31. | 31 Letting the Browser do the Work <img sizes="(min-width: 720px) 50vw, 100vw" srcset="small.jpg 720w, medium.jpg 1200w, large.jpg 1900w" alt="Everything is awesome!" />
  • 33. | 33 Letting the Browser do the Work <img sizes="100vw" srcset="small.jpg 720w, medium.jpg 1200w, large.jpg 1900w" alt="Everything is awesome!" />
  • 35. | 35 Variable Things developers know during development Things the browser knows when rendering images Viewport dimensions NO YES Image size relative to viewport YES NO YES! via sizes Screen density NO YES Images dimensions YES NO YES! via srcset Closing the Gap
  • 37. | 37
  • 38. | 38 Resources Responsive Images 101 - 9 Part Series https://cloudfour.com/thinks/responsive-images-101-definitions/ Srcset and Sizes http://ericportis.com/posts/2014/srcset-sizes/ Responsive Images in Drupal using srcset and sizes https://chromatichq.com/blog/responsive-images-drupal-8-using-srcset The unexpected power of Viewport unit in CSS https://www.lullabot.com/articles/unexpected-power-of-viewport-units-in-css Image Widget Crop Module (Video tutorial) https://www.youtube.com/watch?v=lvj9MEEAs6s
  • 39. | 39| 39 Demo Time!
  • 40. | 40| 40 Your Feedback is Valuable!