Have Minimum difference per image style on the height like the width

Created on 5 July 2022, almost 3 years ago
Updated 14 September 2023, over 1 year ago

Problem/Motivation

Having only "Minimum difference per image style" with the width, no restriction for the height.

Steps to reproduce

Changing the height in the drimage route for example to a height of 3000px
The system will do two things:

  • It keeps creating new image style configs for each change of height
  • It will generate a physical image file for that height too

For example:

A basic bash command with a for loop from 1 to 10000 on changing the height, which using wget or curl for the drimage route on a select one image will create 10000 new configs in the active config
and 10000 new physical images will be created on the server too

Proposed resolution

  • Have Minimum difference per image style on the height.
  • Have a set of configs for height in the module as it has for the width ( minim height, max height, step of change for height too )
  • Change the image tag src drimage url to use a custom data-drimage-src-route with the drimage route url which fills in the right physical image url on observing resize or sizing of the page and containers

Remaining tasks

  • MR/Patch
  • Test update
  • Test Install
  • Review
  • Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A
Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024