simple_image_rotate_rotate_image isn't idempotent

Created on 23 October 2022, about 2 years ago
Updated 25 September 2024, 2 months ago

Problem/Motivation

My application has an entity with an image that is created using an inline-entity-form. For a not-clear-to-me reason - that ends up calling presave on the entity twice. This in turn calls simple_image_rotate_rotate_image twice and the image ends up being rotated twice.

Steps to reproduce

Proposed resolution

simple_image_rotate_rotate_image already updates the width and height based on the newly rotated image - I am proposing zeroing out
the rotate field as well.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

2.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jwag956 Monterey, ca

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