Provide update path to repair image field dimensions

Created on 28 April 2018, over 6 years ago
Updated 30 January 2023, almost 2 years ago

Follow-up to 🐛 Multiple image upload breaks image dimensions Fixed

Problem/Motivation

Incorrectly set dimensions for images when using multiple upload.

This problem should be fixed in the 🐛 Multiple image upload breaks image dimensions Fixed . However, it would also be great to provide update path to repair already corrupted image records.

Workaround

Use contrib module Image Field Repair

Proposed resolution

More number of images and (or) big size of images => long time on processing. Unfortunately, both properties are common. Therefore, processing of all images can be undesirable. There is a suggestion not to process revisions (most often they are not so critical) and 0 delta images (for which this bug does not appear via uploading).

This is certainly not a guaranteed logic. Because images can be reorder or delete later. However, it seems that it is 80% of success for 20% of attempts. Moreover, there is an excellent solution through the contrib module Image Field Repair , which allows to solve the problem totallity for those sites where this is important.

Remaining tasks

Find the optimal combination between execution time and the number of processed images.

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

10.1

Component
Image system 

Last updated about 1 hour ago

Created by

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.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024