Drupal/C3/Controlling-Display-of-Images/English
Title of Script: Controlling Display of Images
Keywords: video tutorial, drupal, Media, Image Styles, Scales and Sizes, Grid, Effect, Event logo, Grid Layout, Display, Format, Fields, Filter, Sort
| |
|
| Slide 1:
Controlling Display of Images |
Welcome to the Spoken tutorial on Controlling Display of Images |
| Slide 2:
Learning Objectives
|
In this tutorial, we will learn about
|
| Slide 3:
System requirement
|
To record this tutorial, I am using
You can use any web browser as per your choice. |
| Let us open our website which we created earlier. |
| Time | Narration |
| 00:10 | In Drupal, we can manipulate the size and scale of an image to fit the different needs of the site. |
| 00:15 | Drupal takes the original image and converts it to the size and scale we want. |
| 00:25 | Then, it saves that version of the file. |
| 00:30 | Click on Configuration. |
| 00:32 | We are going to create 2 image styles here. |
| 00:36 | Scroll down and locate MEDIA tab.
|
| 00:40 | We will create an Image style for the table that we have set up.
|
| 00:53 | Click on Add image styles.
|
| 01:05 | Notice that Drupal fills out the machine name for us. |
| 01:09 | This is our Image style name. |
| 01:15 | Now, click on Create new style.
|
| 01:25 | Under EFFECT, click on Select a new effect dropdown.
|
| 01:50 | Click on the Add button. |
| 01:52 | Enter the Width as 150 and Height as 150. |
| 01:57 | Remember - never make the Width and Height larger than the original image.
|
| 02:05 | Click Add effect. |
| 02:10 | Here is our new Image Style.
|
| 02:15 | Let’s create another one.
|
| 02:25 | This time, in the Image style name we will type photo gallery of logos. |
| 02:30 | Then click on Create new style button. |
| 02:35 | This can be an image in any photo gallery on your machine.
|
| 02:45 | Once again, click on Select a new effect and then on Scale and crop option. |
| 02:50 | Click on Add button.
|
| 03:05 | Notice that the right-hand-side image now has the new dimensions of 300 by 300.
|
| Time | Narration |
| 00:05 | Click Structure, then on Views.
|
| 00:15 | Click on Event Logo and change the Image Style to Upcoming Events.
|
| 00:30 | Scroll down to the preview section and we find that our logos are all uniform. |
| 00:35 | Now, click on Save. |
| 00:40 | Click on Back to site.
|
| 00:46 | Let’s now create a new view as a grid layout for all these events. |
| 00:55 | To do this, click on Structures, then Views, and Add new view. |
| 01:00 | We will name this as Photo Gallery.
|
| 01:15 | This particular view could be used as photo-of-the-day or gallery of images for any event. |
| 01:27 | Click on Create a page. |
| 01:29 | Scroll down and select Grid of fields.
|
| 01:45 | In Items to display field, choose 9 as this gives a 3 by 3 grid.
|
| 01:50 | Under the Menu dropdown, choose the option Main navigation.
|
| 02:00 | Let’s cross-check with our 5 criteria:
We will leave these as they are, for now. |
| 02:15 | Scroll down.
|
| 02:20 | To change the number of columns, in Format, click on the Settings option.
|
| 02:35 | In Fields, click on Add.
|
| 02:50 | This time, choose the photo gallery of logos as Image style.
|
| 03:00 | Immediately, in the Preview section below, a grid is laid out.
|
| 03:20 | Let’s click on Save now.
|
| 03:40 | On a small device like a mobile, all the images scale down to maintain their 3 by 3 grid.
|
| Slide 5:
Summary
|
Let us summarize.
|
| Slide 6:
Acknowledgement
|
This video is
|
| Slide 7:
Acknowledgement
|
The video at this link summarises the Spoken Tutorial project.
|
| Slide 8:
Spoken Tutorial Workshops
|
The Spoken Tutorial Project Team conducts workshops and gives certificates.
|
| Slide 9:
Acknowledgement
|
Spoken Tutorial Project is funded by
Government of India. |
| This is Ameesha Bhorkhade signing off.
|