Support for clientside resize via Dropzone

Created on 26 August 2020, over 4 years ago
Updated 27 February 2025, about 1 month ago

Problem/Motivation

Dropzone supports client side resizing. It would be helpful to use client side resizing to enforce drupal core maximum image resolution setting on media image target fields, which is actually ignored by Media Bulk Upload.

Support for maximum allowed image size Fixed is also about enforcing drupal core maximum image resolution. But the validation of image resolution would be done after the images are uploaded as far as I can see. Imho it would be much better to have this done directly by Dropzone on the client side.

As this is heavily related to Support for minimum image resolution via Dropzone Needs review , I will consider Support for minimum image resolution via Dropzone Needs review as a prerequisite and provide a combined patch with changes from Support for minimum image resolution via Dropzone Needs review .

Steps to reproduce

  • Configure maximum image resolution setting on an image target field for a media entity
  • Configure bulk upload for this media entity
  • Upload an image that is above maximum image resolution
  • The maximum image resolution will not be applied

Proposed resolution

Provide Dropzone clientside resizing for Media Bulk Upload

Remaining tasks

Create patch

User interface changes

Configuration options for client side resizing will be added to the bulk upload configuration entities

API changes

none

Data model changes

additional config keys for the media_bulk_config entities

Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

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