In this example, we'll explore the creation and application of a "Thumbnail" Image Style within a Drupal 9 content type. The "Thumbnail" style will automatically resize and crop images to 200x200 pixels, making them ideal for displaying as thumbnails. This practical guide demonstrates how to set up and use Image Styles effectively to enhance the visual presentation of your website's content.
Step 1: Create the "Thumbnail" Image Style
As we discussed here Demystifying Image Styles in Drupal 9: Tailoring Visual Content for Your Site
Step 2: Create a Content Type
2.1. Navigate to the Content Type Page:
- In the administrative menu, go to "Admin > Structure > Content types."
Click "Add content type" to create a new content type.
2.2. Configure the Content Type:
Provide a name and description for your content type, and configure other settings as needed.
2.3. Add an Image Field:
To include images in your content type, add an "Image" field to it. You can do this by clicking on "Manage fields" for your content type and adding a new field of type "Image."
2.4. Configure the Image Field:
When configuring the image field, make sure to set the "Image Style" to "Thumbnail." This means that any images added using this field will automatically be resized and cropped to 200x200 pixels using the "Thumbnail" Image Style.
Step 3: Create Content with the "Thumbnail" Image Style
3.1. Add Content:
- Go to "Content" in the administrative menu and click "Add content" to create a new piece of content using the content type you just configured.
3.2. Upload an Image:
- When adding content, use the image field you created.
- Upload an image, and it will automatically be processed with the "Thumbnail" Image Style.
Conclusion:
In this example, we've successfully created and utilized the "Thumbnail" Image Style within a Drupal 9 content type. This Image Style automatically resizes and crops images to 200x200 pixels, making them suitable for use as thumbnails. By configuring your content type to use this Image Style, you can ensure that images displayed on your website are consistent and visually appealing.
With Image Styles, you can easily manage and optimize images, enhancing the user experience on your Drupal site.
Comment
https://www.justmedia.ru…
https://www.justmedia.ru/news/russiaandworld/gde-pokatatsya-na-snegokho…
https://bk-melbet-promocode…
https://bk-melbet-promocode.ru/
Интерес к недвижимости на…
Интерес к недвижимости на живописном острове постоянно растёт. Место это привлекает людей, мечтающих об идеальном уголке для отдыха или постоянного проживания [url=http://sehoeng.com/bbs/board.php?bo_table=pro_qna_eng&wr_id=64099]http:…]
Это внедорожный путеводитель…
Это внедорожный путеводитель, карта, на которой размещены интересные маршруты и необходимая информация для путешествий на квадроциклах и снегоходах. Вы сможете: Выбрать интересные маршруты и предварительно свершить по ним виртуальное путешествие [url=http://e-k-h.ru/]день рождения на квадроциклах[/url]
Прокат и аренда квадроциклов…
Прокат и аренда квадроциклов в москве и области. Красота подмосковного леса, опьяняющий, чистый воздух, драйв и адреналин ждут вас в этом квадро приключении [url=http://kvadrociklov-prokat.ru/]аренда квадроциклов с доставкой[/url]
купить сантехнику в москве
купить сантехнику в москве
https://kalkulatoruangtiktok…
https://kalkulatoruangtiktok.id/
https://sad-gid.com/
https://sad-gid.com/
Интерес к островным…
Интерес к островным приобретениям привлекает всё больше внимания. Спрос на жильё в этих местах растёт с каждым годом [url=http://mongdol.net/bbs/board.php?bo_table=free&wr_id=2629983]http://mon…]
https://road-tuning.ru/
https://road-tuning.ru/
Водительские права категории…
Водительские права категории А и В. Выгодные цены на обучение управлением автомобилем с МКПП и АКПП в автошколе [url=http://avtopoisk43.ru/]онлайн обучение на водительские права[/url]
Мы предлагаем вам…
Мы предлагаем вам возможность освоить искусство управления автомобилем. Здесь вы научитесь всему, что нужно для уверенного вождения [url=http://www.pawsarl.es/blog/%D0%B0%D0%BB%D0%BC%D0%B0%D1%82%D0%B0%D0%B9.h…]
https://www.cosmopolitan.com…
https://www.cosmopolitan.com/es/moda/consejos-moda/a35634628/emprender-…
Читать Pg soft играть онлайн
Читать Pg soft играть онлайн
Starda Casino, или как его…
Starda Casino, или как его также называют на русском — Казино Старда, представляет собой онлайн платформу для азартных игр и ставок на спорт [url=http://casino-starda-official.top/]старда сайт[/url]
Китайские, японские и…
Китайские, японские и европейские автомобили. Поставки новых и поддержанных из Китая. Доставка до России с растаможкой и полным юридическим сопровождением [url=https://wiki.mine-hoster.de/index.php?title=Chinese_Cars_16]lixiang l9 цена в россии[/url]
https://truthgate.us/
https://truthgate.us/
https://okna-otk.ru/
https://okna-otk.ru/
https://npointerro.ru/
https://npointerro.ru/
whirlwind build diablo 4…
whirlwind build diablo 4 https://gamersjon.com/
https://derglaube.online/
https://derglaube.online/
Кому и зачем понадобится…
Кому и зачем понадобится оформление сертификата соответствия ГОСТ Р ИСО 9001 в Москве? Сведения актуальны для разных направлений работы. Оформление сертификата ИСО 9001, который будет подтверждать наличие СМК международного образца https://teletype.in/@sezdok/cena-sertifikata-ISO-9001-v-Moskve
https://epsonl210.com
https://epsonl210.com
https://holylandherald.com/
https://holylandherald.com/
Program bonusowy kazdego…
Program bonusowy kazdego nowego kasyna online w Polsce obejmuje roznorodne promocje https://kasynadarmowespiny.pl/
Bonus bez depozytu w kasynie…
Bonus bez depozytu w kasynie to mozliwosc gry w gry kasynowe na prawdziwe pieniadze bez koniecznosci wplacania srodkow na konto https://kasynazbezdepozytu.pl/
W swiecie hazardu w Polsce…
W swiecie hazardu w Polsce kasyna online zajmuja szczegolne miejsce, oferujac wygodna mozliwosc przetestowania swojego szczescia i wygrania bez wychodzenia z domu https://grykasynonline.pl/
Klasyczna gra kazdego kasyna…
Klasyczna gra kazdego kasyna, ktora w pelni oddaje atmosfere ryzyka, to bez watpienia ruletka online w kasynie https://ruletkagra.pl/
Подробный справочник…
Подробный справочник организаций города Астрахань. У нас вы можете найти все необходимые вам адреса и телефоны организаций. Актуальная информация [url=https://astarakan.ru/]Справочник Астрахани[/url]
офисный сейф
офисный сейф
Wygrywaj z 21 w blackjacku,…
Wygrywaj z 21 w blackjacku, tworz zwycieskie uklady w pokerze, stawiaj zaklady w kasynie na zywo i baw sie przy najlepszych grach online w kasynie na zywo https://grakasynonazywo.pl/
seo продвижение цена в…
seo продвижение цена в красногорске
купить домашний сейф
купить домашний сейф
Профессиональная химчистка…
Профессиональная химчистка ковра или ковролина по разумной цене. Оперативный выезд, быстрая сушка [url=https://fabrika-himchistki.ru/khimchistka-myagkoj-mebeli/]furniture dry cleaning spb[/url]
https://znayka-orel.ru/
https://znayka-orel.ru/
Предоставляем возможность…
Предоставляем возможность купить авто от прямого поставщика по достойной цене. Высококвалифицированные специалисты всегда помогут выбрать именно ту модель автомобиля, которая будет идеально отвечать всем вашим требованиям и пожеланиям [url=http://vykup-auto02.ru]huawei aito m9 цена[/url]
Если вы переезжаете, делаете…
Если вы переезжаете, делаете ремонт или не знаете, куда девать несезонное имущество, то аренда склада для хранения вещей решит проблему. Оказываем услуги физическим лицам, предпринимателям и организациям [url=https://self-storage-msk.ru/]https://self-storage-msk.ru/[/url]
Китайские марки автомобилей…
Китайские марки автомобилей список, история и подробное описание популярных китайских авто. Рассказываем о плюсах и минусах [url=http://hyundai-voronezh.ru]zeekr 001 цена[/url]
оружейный сейф
оружейный сейф
септопластика
септопластика
https://мирквеста.рф/
https://мирквеста.рф/
http://chatbot-plus.com/
http://chatbot-plus.com/
https://ok-business24.ru…
https://ok-business24.ru/services/kadrovye-uslugi/upravlenie-logistikoy/
Купон за 2р. предоставляет…
Купон за 2р. предоставляет скидку до 25% на абонементы в сеть фитнес-клубов «Комета». Купон придет на вашу электронную почту и в личный кабинет [url=https://t.me/promokod_kometa]Промокод Казино Комета[/url]
Activate Windows 10
Activate Windows 10
https://ekostil-salon.ru/
https://ekostil-salon.ru/
Every business needs to…
Every business needs to select the right social media in this digital era. There are so many of them that it becomes tough sometimes to pick and choose what will work best for your marketing effect [url=https://penzu.com/p/1376c74372b29c9f]https://penzu.com/p/1376c74372b29c…]
удаление полипа шейки матки
удаление полипа шейки матки
Если вы думаете, как сделать…
Если вы думаете, как сделать накрутку лайков, можно пользоваться различными биржами для покупки лайков [url=https://t.me/s/nakrutka_podpischikov_vk]накрутка подписчиков ВК[/url]
Ищете, где купить стильный и…
Ищете, где купить стильный и удобный женский бюстгальтер? Наш интернет-магазин предлагает огромный ассортимент лифчиков, которые подчеркнут вашу индивидуальность и обеспечат максимальный комфорт.
Выбирая бюстгальтеры у нас, вы найдете модели на любой вкус и размер. В каталоге представлены классические бюстгальтеры с косточками, удобные спортивные лифчики, нежные кружевные варианты и модели для особых случаев. Мы предлагаем продукцию только от проверенных брендов, которые гарантируют качество и долговечность изделий [url=https://www.wildberries.ru/seller/479523]бюстгальтер без косточек[/url]
Pagination
Add new comment