Skip to content

bin/magento media-gallery:sync erases previously stored image width and height in database, when using remote storage #39679

Open
@gwharton

Description

@gwharton

Preconditions and environment

  • 2.4.7-p4
  • AWS S3 Media Storage

Steps to reproduce

Deploy 2.4.7-p4
Configure Remote S3 storage

php bin/magento setup:config:set \
    --remote-storage-driver="aws-s3" \
    --remote-storage-bucket="bucketname" \
    --remote-storage-prefix="" \
    --remote-storage-region="region" \
    --remote-storage-key="key" \
    --remote-storage-secret="secret"

Using backend, upload an image to the wysiwyg folder using media gallery

Image

php bin/magento media-gallery:sync

Image

Expected result

After running media-gallery:sync, the width and height of the images should be correct

Actual result

All images have their height and width zero'd. Original values for height and width are lost.

Additional information

No response

Release note

Media Storage, image height and widths are maintained after running media-gallery:sync when remote storage is configured.

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: ImageIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedReported on 2.4.7-p4Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions