1. As for image settings in Media/Images I set up the maximum resolution: 1600x1600
Media types --> Image --> Manage fields --> Edit
/admin/structure/media/manage/image/fields/media.image.field_media_image

2. It works perfectly fine if I am using the standalone form
Add media --> Image
/media/add/image

3. But whenever I try to use the modal form, this resolution setting is missing, and the uploaded picture is not resized at all...

- Drupal: 10.0.4
- PHP: 8.1.14
Issue fork drupal-3345853
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mornel commentedComment #3
mornel commentedComment #5
whitedevil commentedHey, I have checked the issue and on some R&D about it I found it is related to this issue Media Library field widget not enforcing image limits . and the patch given by @simon_tma works.
Here is the patch link from the discussion https://www.drupal.org/files/issues/2021-09-03/media_field_0.patch
Comment #6
mornel commentedThank you @whitedevil!
The patch you provided works for me an now dimension limits are working properly.
Comment #7
cilefen commented