generate sample values get dimensions wrong when min_resolution is bigger than 600x600

Created on 25 April 2022, over 2 years ago
Updated 26 June 2023, over 1 year ago

Problem/Motivation

I have an image field with a minimal resolution bigger than 600x600. When i use Devel Generate to create default content. The generated images resolution are smaller than the defined minimals in the field.

Steps to reproduce

1. Create a content type with a minimal resolution of 800x800 ( any resolution bigger than 600x600 works to reproduce the bug).
2. Run devel generate to create content of that content type.

Proposed resolution

The generateSampleValue method should check if the minimal resolution is bigger than 600x600, and redefine the max_resolution value accordingly.

Remaining tasks

Add tests, see #12

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

Please review the provided patch.

πŸ› Bug report
Status

Fixed

Version

10.1 ✨

Component
Image moduleΒ  β†’

Last updated 19 days ago

Created by

πŸ‡ͺπŸ‡ΈSpain guiu.rocafort.ferrer Barcelona

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