Skip to content

Image cropping does not work correctly when editing images used in collection type entries. #26836

Description

@Magiczne

Node Version

24

Package Manager

yarn

Package Manager Version

4

Strapi Version

5.48.1

Operating System

Linux (Debian/Ubuntu)

Database

PostgreSQL

Javascript or Typescript

Typescript

Reproduction URL

No response

Bug Description

The crop modal is displayed and both available actions — Crop the original asset and Duplicate & crop the asset — can be clicked. However, after confirming the crop, no changes are applied to the image. The asset remains unchanged, even though the image was cropped in the editor before confirmation.

The crop action appears to be available and the buttons are clickable, but cropping has no effect. After confirmation, the image is not cropped and remains the same as before editing.

Steps to Reproduce

  1. Open any collection type entry that contains an uploaded image.
  2. Click the edit button for the image.
  3. Crop the image in the media editor.
  4. Confirm the crop using either:
    • Crop the original asset
    • Duplicate & crop the asset
  5. Save or confirm the changes.

Expected Behavior

The image should be properly cropped after confirming the crop action.
If cropping is not supported in this context, the crop options should not be available.

Logs

Code Snippets

No response

Media

screen-capture.13.webm

Additional information

We're using S3 provider for media

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: invalid templateAutomation Flag to handle invalid bug report templatesissue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:uploadSource is core/upload packageversion: 5Issue is present in Strapi 5

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions