Menu du compte de l'utilisateur

  • Log in

Navigation principale

  • Home Page
  • All CMS
  • Tutorials
  • White Paper
Home
Guide CMS

Breadcrumb

  • Home
  • Tutorials
  • Drupal User Guide
  • Chapter 6. Setting Up Content Structure
  • 6.13. Setting Up an Image Style

Language selector

  • Français
  • English

Main navigation

  • Home Page
  • All CMS
  • Tutorials
  • White Paper

User login

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • Create new account
  • Reset your password

Book navigation

  • Tutorials
    • Drupal User Guide
      • Preface
      • Chapter 1. Understanding Drupal
      • Chapter 2. Planning Your Site
      • Chapter 3. Installation
      • Chapter 4. Basic Site Configuration
      • Chapter 5. Basic Page Management
      • Chapter 6. Setting Up Content Structure
        • 6.1. Adding a Content Type
        • 6.2. Deleting a Content Type
        • 6.3. Adding Basic Fields to a Content Type
        • 6.4. Concept: Reference Fields
        • 6.5. Concept: Taxonomy
        • 6.6. Setting Up a Taxonomy
        • 6.7. Adding a Reference Field
        • 6.8. Concept: Forms and Widgets
        • 6.9. Changing Content Entry Forms
        • 6.10. Concept: View Modes and Formatters
        • 6.11. Changing Content Display
        • 6.12. Concept: Image Styles
        • 6.13. Setting Up an Image Style
        • 6.14. Concept: Responsive Image Styles
        • 6.15. Concept: Text Formats and Editors
        • 6.16. Configuring Text Formats and Editors
      • Chapter 7. Managing User Accounts
      • Chapter 8. Blocks
      • Chapter 9. Creating Listings with Views

Guy Vigneault

6.13. Setting Up an Image Style

By Guy Vigneault | 11:16 PM EDT, Thu March 12, 2026

Goal

Add an image style and use it to display images on Vendor pages.

Prerequisite knowledge

  • Section 6.3, “Adding Basic Fields to a Content Type”
  • Section 6.11, “Changing Content Display”
  • Section 6.12, “Concept: Image Styles”

Site prerequisites

  • Vendor and Recipe content types must exist. See Section 6.1, “Adding a Content Type”.
  • Main image fields must exist for both content types. See Section 6.3, “Adding Basic Fields to a Content Type”.
  • Content items must exist for both content types. See Section 6.1, “Adding a Content Type”, Section 6.3, “Adding Basic Fields to a Content Type”, and Section 5.2, “Creating a Content Item”.

Steps

  1. In the Manage administrative menu, navigate to Configuration > Media > Image styles (admin/config/media/image-styles).
  2. Click Add image style.
  3. Enter the name Extra medium (300x200)
  4. Click Create new style. The page Edit style Extra medium (300x200) appears.
  5. In the Effect table, select Scale and crop. Click Add.
  6. Fill in the fields as shown below.

    Field nameValue
    Width300
    Height200
  7. Click Add effect. The image style is saved with the chosen effects.

    Add an image style

  8. In the Manage administrative menu, navigate to Structure > Content types (admin/structure/types).
  9. Click Manage display in the Operations dropdown for the Vendor content type. The Manage display page (admin/structure/types/manage/vendor/display) appears.
  10. Ensure that the secondary tab Default is selected.
  11. Click the gear wheel for the Main image field, to open the configuration options.
  12. Fill in the fields as shown below.

    Field nameExplanationExample value
    Image styleWhich image style to useExtra medium (300x200)
    Link image toPage to visit if image is clickedNothing

    Change field formatter settings of image field

  13. Click Update.
  14. Click Save. The new image style will be used while displaying Vendor content.
  15. Open a Vendor content item and verify that it now shows up with the scaled-down image. See Section 5.3, “Editing a Content Item” for information on how to locate an existing content item.
  16. Repeat steps 8-15 for the Recipe content type.

Related concepts

  • Section 6.3, “Adding Basic Fields to a Content Type”
  • Section 6.12, “Concept: Image Styles”
  • Section 6.14, “Concept: Responsive Image Styles”

Videos

Setting up an Image Style

Additional resources

Drupal.org community documentation page "Working with images"

Attributions

Adapted and edited by Boris Doesborg, and Jojy Alphonso at Red Crackle from "Working with images", copyright 2000-2025 by the individual contributors to the Drupal Community Documentation.

 

Book traversal links for Tutorials

  • ‹ 6.12. Concept: Image Styles
  • Up
  • 6.14. Concept: Responsive Image Styles ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

  • 9.3. Creating a Content List View
    5 days 7 hours ago
  • 9.2. Concept: The Parts of a View
    5 days 7 hours ago
  • 9.1. Concept: Uses of Views
    5 days 7 hours ago
  • Chapter 9. Creating Listings with Views
    5 days 7 hours ago
  • 8.3. Placing a Block in a Region
    1 month 2 weeks ago

Copyright

Creative Commons

Sauf mention contraire, Guide CMS © 2025 par Guy Vigneault est sous licence Creative Commons Attribution - Utilisation non commerciale - Partage dans les mêmes conditions 4.0 International

 

Creative Commons

Unless otherwise stated, Guide CMS © 2025 by Guy Vigneault is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

eGV Web