SlideShare a Scribd company logo
1 of 47
Download to read offline
WORDPRESS
AND IMAGES
How to manage ā€Ø
and use imagesā€Ø
better
6.4.2017ā€Ø
WPTurkuā€Ø
Teemu Suoranta
HI, Iā€™M TEEMU
ā€¢ Web developer at Aucor
ā€¢ Organizer at WPTurku
ā€¢ Twitter: @teemusuoranta
ā€¢ WPFI Slack: @teemusuoranta
WORDPRESS & IMAGES
1. Image basics
2. Uploading images to WordPress
3. Displaying images
4. Organising media gallery
5. Faster loading times
6. Protecting your images
1. IMAGE BASICS
RASTER IMAGES
ā€¢ ā€œNormal imagesā€
ā€¢ JPG, PNG, GIFā€¦
ā€¢ Image is a grid of pixels
ā€¢ Use for pictures
VECTOR IMAGES
ā€¢ Icons, graphs, maps etc
ā€¢ Format: SVG
ā€¢ Has instructions ā€Ø
how to draw the image
ā€¢ Scales to any size without being blurry
RAW IMAGES
ā€¢ Modern ā€œnegative ļ¬lmsā€ (a type of raster, too)
ā€¢ You can set digital camera to save images as raw
ā€¢ In this format you can edit the colors and lightning
better
ā€¢ File size many times bigger than normal raster
images
ā€¢ Save as JPG etc before displaying
IMAGE DATA
ā€¢ The actual picture
ā€¢ Filename: owl.jpg
ā€¢ EXIF data:
ā€¢ Camera info: ISO, shutter speed, rotation etc
ā€¢ Location (See: I know where your cat lives)
ā€¢ Creation time
ā€¢ Copyright, credit, caption
FILE SIZES
ā€¢ SVG < Raster < RAW
ā€¢ SVG: complexity, minifying
ā€¢ Raster: Dimensions and compression
ā€¢ Filesize goes up exponentially as dimensions
grow bigger
2. UPLOADING IMAGES
TO WORDPRESS
HOW TO UPLOAD?
1. From ā€œMediaā€
2. While writing
3. With (S)FTP
4. Import
ATTACHMENT POST TYPE
ā€¢ Media ļ¬les (images, video, audio, documents
etc.) are saved as ā€œattachmentsā€
ā€¢ EXIF data, description, title, alt texts are saved in
database
ā€¢ The ļ¬le goes by default to /wp-content/uploads/
or /wp-content/uploads/2017/4/
MEDIA LIBRARY
ā€¢ All uploaded ļ¬les
ā€¢ Basic ļ¬lters (date, media type, search)
IMAGE SIZES
ā€¢ WordPress generates multiple image sizes
ā€¢ Sizes are generated when image is uploaded
ā€¢ Default: Large (1024x1024), Medium (300x300),
Thumbnail (150x150), Full size
ā€¢ You, plugins and themes can add their own and
modify default sizes
IMAGE CROPPING
Full sizeā€Ø
2000 x 1333ā€Ø
Soft cropā€Ø
500 x 500ā€Ø
ā€œFit these boundsā€
Hard cropā€Ø
500 x 500ā€Ø
ā€œBe this sizeā€
MY ā€œGOLDEN STANDARDā€
FOR IMAGE SIZES
ā€¢ Large: full width of text column and as tall as it
happens to be
ā€¢ Example: 720 x 3000, soft crop
ā€¢ Medium: half width of the text column and as tall
as it happens to be
ā€¢ Example 360 x 1500, soft crop
REGENERATING ā€Ø
EXISTING IMAGES
ā€¢ Existing images wonā€™t change if you add or
modify sizes later
ā€¢ Youā€™ll need to regenerate sizes
ā€¢ Plugin: Force Regenerate Thumbnails
ā€¢ WP-CLI: wp media regenerate
MANUAL CROPPING
ā€¢ Plugin: Manual Image Crop
ā€¢ Default: crop to center
ā€¢ With plugin you can decide ā€Ø
where to crop each size
ā€¢ Custom crops reset whenā€Ø
regenerating image sizes :(
SANITISING FILE NAMES
ā€¢ File names are somewhat sanitised: ā€Ø
spaces to dashes
ā€¢ Scandic letters ƤƶƄ are not
ā€¢ Broken images in Safari
ā€¢ Plugin: WP Sanitize Accented Uploads
3. DISPLAYING IMAGES
CAPTIONS AND ALT TEXTS
ā€¢ Captions (text under theā€Ø
image)
ā€¢ Alternative text: contextā€Ø
and meaning (visible toā€Ø
screen readers and ā€Ø
search engines)
ā€¢ Sami Keijonen: Writing Accessible Content
IMAGES IN CONTENT
ā€¢ Images, video, audio etc can be embedded to
content
ā€¢ You can choose size, alignment,ā€Ø
captions, link
ā€¢ Upload new images or selectā€Ø
from media library
GALLERIES
ā€¢ Built-in support for galleries
ā€¢ Choose columns, sizes, ā€Ø
captions, links
ā€¢ [gallery] shortcode
ā€¢ Themes and plugins canā€Ø
extend and style themā€Ø
RESPONSIVE IMAGES
ā€¢ Let the browser decide which image size to use
(Retina, mobile, desktop)
ā€¢ WP adds alternative versions automatically with
srcset parameter in content
ā€¢ Thereā€™s functions and ļ¬lters to do it in theme /
plugin
SLIDESHOWS / CAROUSELS
ā€¢ Bad for: important things, text, news, offersā€Ø
Good for: additional images, galleries
ā€¢ See: Should I Use Carousels
ā€¢ Plugins: many (no recommendations)ā€Ø
Themes: many (no recommendations)ā€Ø
JS libraries: many
LIGHTBOXES
ā€¢ Open full size image in overlay
ā€¢ Turns links to image toā€Ø
light boxes automatically
ā€¢ Plugins: WP Lightbox 2,ā€Ø
Simple Lightbox etc
VIDEO THUMBNAILS
ā€¢ Plugin: Video Thumbnails
ā€¢ Make featured image from ā€Ø
embedded video
ā€¢ Works with Youtube, Vimeo, ā€Ø
Facebook, Twitch etc.
AUTO POST THUMBNAIL
ā€¢ Plugin: Auto Post Thumbnail
ā€¢ Makes the ļ¬rst image from content the featured
image if it isnā€™t set by user
ā€¢ Thatā€™s it
4. ORGANISING ā€Ø
MEDIA GALLERY
DEFAULT FILTERS
ā€¢ By default: ļ¬lter date, media type or search
ā€¢ Finding images can be difļ¬cult
ā€¢ Would folders solve everything?
MEDIA CATEGORIES
ā€¢ Plugin: Enhanced Media Library
ā€¢ You can create you own taxonomies like
ā€¢ Theme: people, landscape, logo
ā€¢ License: our, image bank, public domain
ā€¢ One image can belong to many taxonomies
CATEGORIES AND TAGS TO
IMAGES
ā€¢ Plugin: Enhanced Media Library
ā€¢ You can use the same tags and categories in
images as posts
ā€¢ You can display all the images added to certain
category
MIME TYPES (MEDIA TYPES)
ā€¢ Plugin: Enhanced Media Library
ā€¢ You can control what kind of ļ¬les can be
uploaded
ā€¢ You can also ļ¬lter by these types
IN THE END, ITā€™S UP TO YOU
ā€¢ Plugins like Enhanced Media Library give you the
tools
ā€¢ You need to consistently use them and ļ¬gure
how to organise images
ā€¢ There is no one right way
5. FASTER LOADING
TIMES
COMPRESSION
ā€¢ Running images through algorithms to make their ļ¬le size smaller
ā€¢ Losless (a bit) / lossy (much)
ā€¢ WP does a little with ā€œ82ā€ rate (very high quality)
ā€¢ Advanced compression requires some things installed in the
server
ā€¢ Compression as service: WP Smush, Imagify, TinyPNG, EWWW
Image Optimizer etc.
CDN
ā€¢ Moving images to faster server or Content
Delivery Network
ā€¢ Is it worth it: ĀÆ_( )_/ĀÆ
ā€¢ Some examples: Jetpack, Amazon Cloudfront,
Google App Engine etc.
LIMIT FULL SIZE IMAGE
ā€¢ Users might upload crazy big images ā€Ø
(like 6000x6000)
ā€¢ You can resize the full size image to safe space
(and loading time if it is used)
ā€¢ Plugin: Imsanity
LAZY LOADING
ā€¢ Idea: Load the image only when user scrolls to it
ā€¢ Plugin: Lazy Load (and many others)
ā€¢ Pros: Initial page load is fast
ā€¢ Cons: Really just delays page weight, UX:
ā€œimages jump aroundā€
USING SMALLER IMAGES
ā€¢ Big images = lot to load
ā€¢ Slow: full screen images, big slideshows etc.
ā€¢ Donā€™t use bigger image than you need:
responsive images
ā€¢ You can also use fewer images
SPEED ISNā€™T JUST FILE SIZES
ā€¢ Load time is sum of many things: server
response time, database queries, cachesā€¦
ā€¢ Thereā€™s no set limit how many / big images you
can use
ā€¢ Optimising images wonā€™t ļ¬x everything
6. PROTECTING YOUR
IMAGES
STUFF THAT WON'T WORK
ā€¢ Disabling ā€œright click on imagesā€ā€Ø
(Super advanced live hack demo)
ā€¢ Using only ā€œlargeā€ and ā€œmediumā€: full size url can
be traced from smaller version
(image-300x300.jpg)
ā€¢ Copyright symbol Ā©
ADDING WATERMARKS
ā€¢ You can add your logo/name/website in image
ā€¢ If image is copied, you will have credit
ā€¢ You can apply watermark ā€Ø
to your images and ā€Ø
backup original versions
ā€¢ Plugin: Image Watermark
IF I WAS PHOTOGRAPHERā€¦
ā€¢ Iā€™d avoid uploading HQ images and have smaller
web versions available
ā€¢ Iā€™d add automatic Watermark to images
ā€¢ I would add copyright info to EXIF data
(remember the caption and copyright info in
image ļ¬le)
RESTRICTING ACCESS
ā€¢ Normal uploads are accessible with correct URL: WP
canā€™t control the access
ā€¢ Plugins can create alternative upload directories that
are only available through their control
ā€¢ Selling images, showing images only to logged in
ā€¢ Plugin: Easy Digital Downloads, WooComemmerce,
Download Monitor, Download Manager etc.
THATā€™S ALL, FOLKS!
@teemusuoranta

More Related Content

What's hot

WordPress 101 less than an hour
WordPress 101 less than an hourWordPress 101 less than an hour
WordPress 101 less than an hourAngela Samuels
Ā 
Wordpress website development
Wordpress website developmentWordpress website development
Wordpress website developmentJohn Faust
Ā 
WordPress intro
WordPress introWordPress intro
WordPress introdbnorth
Ā 
Pimp your wp site
Pimp your wp sitePimp your wp site
Pimp your wp siteWarren Denley
Ā 
Designing CSS Layouts for the Flexible Web
Designing CSS Layouts for the Flexible WebDesigning CSS Layouts for the Flexible Web
Designing CSS Layouts for the Flexible WebZoe Gillenwater
Ā 
Food blogging at UBC
Food blogging at UBCFood blogging at UBC
Food blogging at UBCTris Hussey
Ā 
BuddyPress: A Social Network for your Classroom
BuddyPress: A Social Network for your ClassroomBuddyPress: A Social Network for your Classroom
BuddyPress: A Social Network for your ClassroomJustin Shreve
Ā 
Wp nhcc portfolio
Wp nhcc portfolioWp nhcc portfolio
Wp nhcc portfoliogregorvios
Ā 
WP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsWP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsJoe Querin
Ā 
Theme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgTheme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgThemeHorse
Ā 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Tris Hussey
Ā 
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...Michael Yublosky
Ā 
WP 101 - WordPress Basics
WP 101 - WordPress BasicsWP 101 - WordPress Basics
WP 101 - WordPress BasicsJoe Querin
Ā 
WPD Training
WPD TrainingWPD Training
WPD TrainingBruce Clary
Ā 
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)Wordpress 101 presentation - Canadian Association of Labour Media (CALM)
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)darren_puscas
Ā 
WordPress with Non Profits
WordPress with Non ProfitsWordPress with Non Profits
WordPress with Non ProfitsJason Tucker
Ā 
Getting the Most out of WordPress
Getting the Most out of WordPressGetting the Most out of WordPress
Getting the Most out of WordPressone2m
Ā 

What's hot (20)

WordPress 101 less than an hour
WordPress 101 less than an hourWordPress 101 less than an hour
WordPress 101 less than an hour
Ā 
Wordpress website development
Wordpress website developmentWordpress website development
Wordpress website development
Ā 
WordPress
WordPressWordPress
WordPress
Ā 
WordPress intro
WordPress introWordPress intro
WordPress intro
Ā 
Pimp your wp site
Pimp your wp sitePimp your wp site
Pimp your wp site
Ā 
Designing CSS Layouts for the Flexible Web
Designing CSS Layouts for the Flexible WebDesigning CSS Layouts for the Flexible Web
Designing CSS Layouts for the Flexible Web
Ā 
Food blogging at UBC
Food blogging at UBCFood blogging at UBC
Food blogging at UBC
Ā 
BuddyPress: A Social Network for your Classroom
BuddyPress: A Social Network for your ClassroomBuddyPress: A Social Network for your Classroom
BuddyPress: A Social Network for your Classroom
Ā 
Wp nhcc portfolio
Wp nhcc portfolioWp nhcc portfolio
Wp nhcc portfolio
Ā 
WP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsWP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and Plugins
Ā 
Theme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgTheme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.org
Ā 
Mixbooks
MixbooksMixbooks
Mixbooks
Ā 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012
Ā 
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...
Ā 
WP 101 - WordPress Basics
WP 101 - WordPress BasicsWP 101 - WordPress Basics
WP 101 - WordPress Basics
Ā 
WPD Training
WPD TrainingWPD Training
WPD Training
Ā 
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)Wordpress 101 presentation - Canadian Association of Labour Media (CALM)
Wordpress 101 presentation - Canadian Association of Labour Media (CALM)
Ā 
Wordpress genesis september 3 english rev cg
Wordpress genesis september 3 english rev cgWordpress genesis september 3 english rev cg
Wordpress genesis september 3 english rev cg
Ā 
WordPress with Non Profits
WordPress with Non ProfitsWordPress with Non Profits
WordPress with Non Profits
Ā 
Getting the Most out of WordPress
Getting the Most out of WordPressGetting the Most out of WordPress
Getting the Most out of WordPress
Ā 

Similar to Manage and Optimize WordPress Images

How to ensure a long life span for a website?
How to ensure a long life span for a website?How to ensure a long life span for a website?
How to ensure a long life span for a website?Teemu Suoranta
Ā 
Your Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXYour Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXTim D'Agostino
Ā 
Image optimization and you
Image optimization and youImage optimization and you
Image optimization and youJohannes Siipola
Ā 
Picture Perfect Images For Social Media
Picture Perfect Images For Social MediaPicture Perfect Images For Social Media
Picture Perfect Images For Social MediaBruce Jones
Ā 
How the word press media library works 2019
How the word press media library works 2019How the word press media library works 2019
How the word press media library works 2019Nicholas Batik
Ā 
Act. teresa and mechelle
Act. teresa and mechelleAct. teresa and mechelle
Act. teresa and mechelleteresamembrano
Ā 
Image Mastery within WordPress: Upload, Edit, Display, and Share with Ease
Image Mastery within WordPress: Upload, Edit, Display, and Share with EaseImage Mastery within WordPress: Upload, Edit, Display, and Share with Ease
Image Mastery within WordPress: Upload, Edit, Display, and Share with EaseAmber Hewitt
Ā 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5Jeff Byrnes
Ā 
Online File Formats.pptx
Online File Formats.pptxOnline File Formats.pptx
Online File Formats.pptxCliffordBorromeo
Ā 
Mobie Zine Publications
Mobie Zine PublicationsMobie Zine Publications
Mobie Zine PublicationsMatleena Laakso
Ā 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereStephen Bell
Ā 
Sources of Photos and Graphics
Sources of Photos and GraphicsSources of Photos and Graphics
Sources of Photos and GraphicsMaria Eloisa Blanza
Ā 
File types pro forma
File types pro formaFile types pro forma
File types pro formaJessStanton_
Ā 
Evaluation Q6
Evaluation Q6Evaluation Q6
Evaluation Q6Amy Heywood
Ā 
Drupal intro-training-in-mumbai
Drupal intro-training-in-mumbaiDrupal intro-training-in-mumbai
Drupal intro-training-in-mumbaivibrantuser
Ā 
The Best WordPress Image Grids Plugins
The Best WordPress Image Grids PluginsThe Best WordPress Image Grids Plugins
The Best WordPress Image Grids PluginsJacques Surveyer
Ā 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate WorkshopThe Toolbox, Inc.
Ā 
Optimizing images for the web
Optimizing images for the webOptimizing images for the web
Optimizing images for the webKatharine Holmes
Ā 

Similar to Manage and Optimize WordPress Images (20)

How to ensure a long life span for a website?
How to ensure a long life span for a website?How to ensure a long life span for a website?
How to ensure a long life span for a website?
Ā 
Your Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXYour Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UX
Ā 
Image optimization and you
Image optimization and youImage optimization and you
Image optimization and you
Ā 
Picture Perfect Images For Social Media
Picture Perfect Images For Social MediaPicture Perfect Images For Social Media
Picture Perfect Images For Social Media
Ā 
How the word press media library works 2019
How the word press media library works 2019How the word press media library works 2019
How the word press media library works 2019
Ā 
Act. teresa and mechelle
Act. teresa and mechelleAct. teresa and mechelle
Act. teresa and mechelle
Ā 
Image Mastery within WordPress: Upload, Edit, Display, and Share with Ease
Image Mastery within WordPress: Upload, Edit, Display, and Share with EaseImage Mastery within WordPress: Upload, Edit, Display, and Share with Ease
Image Mastery within WordPress: Upload, Edit, Display, and Share with Ease
Ā 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5
Ā 
Online File Formats.pptx
Online File Formats.pptxOnline File Formats.pptx
Online File Formats.pptx
Ā 
Mobie Zine Publications
Mobie Zine PublicationsMobie Zine Publications
Mobie Zine Publications
Ā 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get there
Ā 
Sources of Photos and Graphics
Sources of Photos and GraphicsSources of Photos and Graphics
Sources of Photos and Graphics
Ā 
File types.
File types.File types.
File types.
Ā 
File types pro forma
File types pro formaFile types pro forma
File types pro forma
Ā 
Evaluation Q6
Evaluation Q6Evaluation Q6
Evaluation Q6
Ā 
Drupal intro-training-in-mumbai
Drupal intro-training-in-mumbaiDrupal intro-training-in-mumbai
Drupal intro-training-in-mumbai
Ā 
The Best WordPress Image Grids Plugins
The Best WordPress Image Grids PluginsThe Best WordPress Image Grids Plugins
The Best WordPress Image Grids Plugins
Ā 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate Workshop
Ā 
Interactive Web Design 5 - Week 2 - Introduction
Interactive Web Design 5 - Week 2 -  IntroductionInteractive Web Design 5 - Week 2 -  Introduction
Interactive Web Design 5 - Week 2 - Introduction
Ā 
Optimizing images for the web
Optimizing images for the webOptimizing images for the web
Optimizing images for the web
Ā 

Recently uploaded

Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneCall girls in Ahmedabad High profile
Ā 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Personfurqan222004
Ā 
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130 Available With Roomishabajaj13
Ā 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
Ā 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...aditipandeya
Ā 
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130 Available With Roomdivyansh0kumar0
Ā 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
Ā 
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130 Available With Roomdivyansh0kumar0
Ā 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
Ā 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
Ā 
Low Rate Call Girls Kolkata Avani šŸ¤Œ 8250192130 šŸš€ Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani šŸ¤Œ  8250192130 šŸš€ Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani šŸ¤Œ  8250192130 šŸš€ Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani šŸ¤Œ 8250192130 šŸš€ Vip Call Girls Kolkataanamikaraghav4
Ā 
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts service
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts serviceChennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts service
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts servicevipmodelshub1
Ā 
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdfkeithzhangding
Ā 
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Delivery
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on DeliveryCall Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Delivery
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Deliverybabeytanya
Ā 
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130 Available With Roomdivyansh0kumar0
Ā 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Roomgirls4nights
Ā 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
Ā 
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€å®šåˆ¶(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€3sw2qly1
Ā 

Recently uploaded (20)

Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Ā 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Ā 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
Ā 
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake šŸ‘‰ 8250192130 Available With Room
Ā 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
Ā 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
Ā 
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur šŸ‘‰ 8250192130 Available With Room
Ā 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
Ā 
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum šŸ‘‰ 8250192130 Available With Room
Ā 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Ā 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
Ā 
Low Rate Call Girls Kolkata Avani šŸ¤Œ 8250192130 šŸš€ Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani šŸ¤Œ  8250192130 šŸš€ Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani šŸ¤Œ  8250192130 šŸš€ Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani šŸ¤Œ 8250192130 šŸš€ Vip Call Girls Kolkata
Ā 
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts service
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts serviceChennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts service
Chennai Call Girls Alwarpet Phone šŸ† 8250192130 šŸ‘… celebrity escorts service
Ā 
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf
豔限ē­–ē•„ļ¼šGoogle Workspace äøŽ Microsoft 365 åƹäøšåŠ”ēš„影响 .pdf
Ā 
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Delivery
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on DeliveryCall Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Delivery
Call Girls In Mumbai Central Mumbai ā¤ļø 9920874524 šŸ‘ˆ Cash on Delivery
Ā 
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar šŸ‘‰ 8250192130 Available With Room
Ā 
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šŸ”
Ā 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
Ā 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Ā 
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€å®šåˆ¶(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€
定制(CCęƕäøščƁ书)ē¾Žå›½ē¾Žå›½ē¤¾åŒŗ大学ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęƔäø€
Ā 

Manage and Optimize WordPress Images

  • 1. WORDPRESS AND IMAGES How to manage ā€Ø and use imagesā€Ø better 6.4.2017ā€Ø WPTurkuā€Ø Teemu Suoranta
  • 2. HI, Iā€™M TEEMU ā€¢ Web developer at Aucor ā€¢ Organizer at WPTurku ā€¢ Twitter: @teemusuoranta ā€¢ WPFI Slack: @teemusuoranta
  • 3. WORDPRESS & IMAGES 1. Image basics 2. Uploading images to WordPress 3. Displaying images 4. Organising media gallery 5. Faster loading times 6. Protecting your images
  • 5. RASTER IMAGES ā€¢ ā€œNormal imagesā€ ā€¢ JPG, PNG, GIFā€¦ ā€¢ Image is a grid of pixels ā€¢ Use for pictures
  • 6. VECTOR IMAGES ā€¢ Icons, graphs, maps etc ā€¢ Format: SVG ā€¢ Has instructions ā€Ø how to draw the image ā€¢ Scales to any size without being blurry
  • 7. RAW IMAGES ā€¢ Modern ā€œnegative ļ¬lmsā€ (a type of raster, too) ā€¢ You can set digital camera to save images as raw ā€¢ In this format you can edit the colors and lightning better ā€¢ File size many times bigger than normal raster images ā€¢ Save as JPG etc before displaying
  • 8. IMAGE DATA ā€¢ The actual picture ā€¢ Filename: owl.jpg ā€¢ EXIF data: ā€¢ Camera info: ISO, shutter speed, rotation etc ā€¢ Location (See: I know where your cat lives) ā€¢ Creation time ā€¢ Copyright, credit, caption
  • 9. FILE SIZES ā€¢ SVG < Raster < RAW ā€¢ SVG: complexity, minifying ā€¢ Raster: Dimensions and compression ā€¢ Filesize goes up exponentially as dimensions grow bigger
  • 11. HOW TO UPLOAD? 1. From ā€œMediaā€ 2. While writing 3. With (S)FTP 4. Import
  • 12. ATTACHMENT POST TYPE ā€¢ Media ļ¬les (images, video, audio, documents etc.) are saved as ā€œattachmentsā€ ā€¢ EXIF data, description, title, alt texts are saved in database ā€¢ The ļ¬le goes by default to /wp-content/uploads/ or /wp-content/uploads/2017/4/
  • 13. MEDIA LIBRARY ā€¢ All uploaded ļ¬les ā€¢ Basic ļ¬lters (date, media type, search)
  • 14. IMAGE SIZES ā€¢ WordPress generates multiple image sizes ā€¢ Sizes are generated when image is uploaded ā€¢ Default: Large (1024x1024), Medium (300x300), Thumbnail (150x150), Full size ā€¢ You, plugins and themes can add their own and modify default sizes
  • 15. IMAGE CROPPING Full sizeā€Ø 2000 x 1333ā€Ø Soft cropā€Ø 500 x 500ā€Ø ā€œFit these boundsā€ Hard cropā€Ø 500 x 500ā€Ø ā€œBe this sizeā€
  • 16. MY ā€œGOLDEN STANDARDā€ FOR IMAGE SIZES ā€¢ Large: full width of text column and as tall as it happens to be ā€¢ Example: 720 x 3000, soft crop ā€¢ Medium: half width of the text column and as tall as it happens to be ā€¢ Example 360 x 1500, soft crop
  • 17. REGENERATING ā€Ø EXISTING IMAGES ā€¢ Existing images wonā€™t change if you add or modify sizes later ā€¢ Youā€™ll need to regenerate sizes ā€¢ Plugin: Force Regenerate Thumbnails ā€¢ WP-CLI: wp media regenerate
  • 18. MANUAL CROPPING ā€¢ Plugin: Manual Image Crop ā€¢ Default: crop to center ā€¢ With plugin you can decide ā€Ø where to crop each size ā€¢ Custom crops reset whenā€Ø regenerating image sizes :(
  • 19. SANITISING FILE NAMES ā€¢ File names are somewhat sanitised: ā€Ø spaces to dashes ā€¢ Scandic letters ƤƶƄ are not ā€¢ Broken images in Safari ā€¢ Plugin: WP Sanitize Accented Uploads
  • 21. CAPTIONS AND ALT TEXTS ā€¢ Captions (text under theā€Ø image) ā€¢ Alternative text: contextā€Ø and meaning (visible toā€Ø screen readers and ā€Ø search engines) ā€¢ Sami Keijonen: Writing Accessible Content
  • 22. IMAGES IN CONTENT ā€¢ Images, video, audio etc can be embedded to content ā€¢ You can choose size, alignment,ā€Ø captions, link ā€¢ Upload new images or selectā€Ø from media library
  • 23. GALLERIES ā€¢ Built-in support for galleries ā€¢ Choose columns, sizes, ā€Ø captions, links ā€¢ [gallery] shortcode ā€¢ Themes and plugins canā€Ø extend and style themā€Ø
  • 24. RESPONSIVE IMAGES ā€¢ Let the browser decide which image size to use (Retina, mobile, desktop) ā€¢ WP adds alternative versions automatically with srcset parameter in content ā€¢ Thereā€™s functions and ļ¬lters to do it in theme / plugin
  • 25. SLIDESHOWS / CAROUSELS ā€¢ Bad for: important things, text, news, offersā€Ø Good for: additional images, galleries ā€¢ See: Should I Use Carousels ā€¢ Plugins: many (no recommendations)ā€Ø Themes: many (no recommendations)ā€Ø JS libraries: many
  • 26. LIGHTBOXES ā€¢ Open full size image in overlay ā€¢ Turns links to image toā€Ø light boxes automatically ā€¢ Plugins: WP Lightbox 2,ā€Ø Simple Lightbox etc
  • 27. VIDEO THUMBNAILS ā€¢ Plugin: Video Thumbnails ā€¢ Make featured image from ā€Ø embedded video ā€¢ Works with Youtube, Vimeo, ā€Ø Facebook, Twitch etc.
  • 28. AUTO POST THUMBNAIL ā€¢ Plugin: Auto Post Thumbnail ā€¢ Makes the ļ¬rst image from content the featured image if it isnā€™t set by user ā€¢ Thatā€™s it
  • 30. DEFAULT FILTERS ā€¢ By default: ļ¬lter date, media type or search ā€¢ Finding images can be difļ¬cult ā€¢ Would folders solve everything?
  • 31. MEDIA CATEGORIES ā€¢ Plugin: Enhanced Media Library ā€¢ You can create you own taxonomies like ā€¢ Theme: people, landscape, logo ā€¢ License: our, image bank, public domain ā€¢ One image can belong to many taxonomies
  • 32. CATEGORIES AND TAGS TO IMAGES ā€¢ Plugin: Enhanced Media Library ā€¢ You can use the same tags and categories in images as posts ā€¢ You can display all the images added to certain category
  • 33. MIME TYPES (MEDIA TYPES) ā€¢ Plugin: Enhanced Media Library ā€¢ You can control what kind of ļ¬les can be uploaded ā€¢ You can also ļ¬lter by these types
  • 34. IN THE END, ITā€™S UP TO YOU ā€¢ Plugins like Enhanced Media Library give you the tools ā€¢ You need to consistently use them and ļ¬gure how to organise images ā€¢ There is no one right way
  • 36. COMPRESSION ā€¢ Running images through algorithms to make their ļ¬le size smaller ā€¢ Losless (a bit) / lossy (much) ā€¢ WP does a little with ā€œ82ā€ rate (very high quality) ā€¢ Advanced compression requires some things installed in the server ā€¢ Compression as service: WP Smush, Imagify, TinyPNG, EWWW Image Optimizer etc.
  • 37. CDN ā€¢ Moving images to faster server or Content Delivery Network ā€¢ Is it worth it: ĀÆ_( )_/ĀÆ ā€¢ Some examples: Jetpack, Amazon Cloudfront, Google App Engine etc.
  • 38. LIMIT FULL SIZE IMAGE ā€¢ Users might upload crazy big images ā€Ø (like 6000x6000) ā€¢ You can resize the full size image to safe space (and loading time if it is used) ā€¢ Plugin: Imsanity
  • 39. LAZY LOADING ā€¢ Idea: Load the image only when user scrolls to it ā€¢ Plugin: Lazy Load (and many others) ā€¢ Pros: Initial page load is fast ā€¢ Cons: Really just delays page weight, UX: ā€œimages jump aroundā€
  • 40. USING SMALLER IMAGES ā€¢ Big images = lot to load ā€¢ Slow: full screen images, big slideshows etc. ā€¢ Donā€™t use bigger image than you need: responsive images ā€¢ You can also use fewer images
  • 41. SPEED ISNā€™T JUST FILE SIZES ā€¢ Load time is sum of many things: server response time, database queries, cachesā€¦ ā€¢ Thereā€™s no set limit how many / big images you can use ā€¢ Optimising images wonā€™t ļ¬x everything
  • 43. STUFF THAT WON'T WORK ā€¢ Disabling ā€œright click on imagesā€ā€Ø (Super advanced live hack demo) ā€¢ Using only ā€œlargeā€ and ā€œmediumā€: full size url can be traced from smaller version (image-300x300.jpg) ā€¢ Copyright symbol Ā©
  • 44. ADDING WATERMARKS ā€¢ You can add your logo/name/website in image ā€¢ If image is copied, you will have credit ā€¢ You can apply watermark ā€Ø to your images and ā€Ø backup original versions ā€¢ Plugin: Image Watermark
  • 45. IF I WAS PHOTOGRAPHERā€¦ ā€¢ Iā€™d avoid uploading HQ images and have smaller web versions available ā€¢ Iā€™d add automatic Watermark to images ā€¢ I would add copyright info to EXIF data (remember the caption and copyright info in image ļ¬le)
  • 46. RESTRICTING ACCESS ā€¢ Normal uploads are accessible with correct URL: WP canā€™t control the access ā€¢ Plugins can create alternative upload directories that are only available through their control ā€¢ Selling images, showing images only to logged in ā€¢ Plugin: Easy Digital Downloads, WooComemmerce, Download Monitor, Download Manager etc.