承接 drupal/normalized_responsive_images 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/normalized_responsive_images

最新稳定版本:1.0.2

Composer 安装命令:

composer require drupal/normalized_responsive_images

包简介

The Normalized Responsive Images recipe provides several sets of aspect ratio based responsive image styles and corresponding image view modes to display Normalized Image Styles.

README 文档

README

The Normalized Responsive Images recipe provides several sets of aspect ratio based image styles with normalized dimensions (see Normalized Image Styles). For each aspect ratio set there is a corresponding responsive image style and an image view mode to make the best use of the sets throughout your site.

Recipe Purpose

This recipe is designed to do the following:

  • Install 20 sets of aspect ratio based image styles with normalized dimensions
  • Install 20 responsive image styles, one for each aspect ratio
  • Install 20 image view modes, one for each responsive image style

Installing

  • Start with a Drupal ^10.3 site.
  • Install the 'Default' profile.
  • Apply the recipe

The recipe can be applied via Drush ^13

To apply all 20 sets and a demo:

drush recipe recipes/normalized_responsive_images/normalized_responsive_images

To apply any individual set, such as "Landscape Anamorphic":

drush recipe recipes/normalized_responsive_images/nri_landscape_anamorphic

Or by using ddev exec

ddev exec -d /var/www/html/web php core/scripts/drupal recipe recipes/normalized_responsive_images/normalized_responsive_images

If all goes well, you should see the following output:

 [OK] Normalized Responsive Images applied successfully

Clear the cache after the recipe is applied. When going back to the site, all the recipe configuration and customization has been applied.

Usage

There are at least three ways to use Normalized Responsive Images

  1. Use a rendered image view mode when embedding image media in CKEditor
  2. Use a "Responsive image" field formatter anywhere images are displayed
  3. Use a single "Image" field formatter anywhere images are displayed

统计信息

  • 总下载量: 165
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-11-01