Improve image handling

Created on 6 September 2021, about 3 years ago
Updated 14 May 2024, 5 months ago

In a recent commit, I added support for syncing product variation images as media entities. You can now select either image or entity_reference fields, as long as the entity reference fields refer to media entities of the type image, in the Printful store configuration.

The media entities are handled just as the image fields, in that when the sync happens, the field contents are deleted and new file and/or media entities are recreated. This isn't ideal if you'd like to re-use the product images in other parts of the site.

Here are some ideas I have for improvements:

  1. Provide additional checkbox on the sync page to allow image replacement to be optional
  2. Add logic to prevent creating separate file/media entities for each product variation image when the filenames match
  3. Revise current logic to update any existing file/media entities rather than recreate them
  4. Auto-populate alt fields

Other ideas welcome.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States cameron prince

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