Skip to content

E-commerce 0.5.17: Imports reuse a picture the shop already has

E-commerce 0.5.17 stops Shopify imports from storing the same picture again and again when the store keeps a separate copy of it on every listing.

A store filled from Etsy, for example, can hold one banner as a separate file on each product. The import matched pictures by address or exact content, so it stored every copy. It now compares each download with the pictures already imported by how they look, confirms the match on the pictures themselves, and reuses the stored file. A picture in the trash is restored rather than attached from the trash.

Upgrading

Run mix phoenix_kit_ecommerce.backfill_image_fingerprints once after upgrading, before the next Shopify media sync. Pictures imported earlier have no fingerprint, so until it runs none of them can be matched. The module now needs PhoenixKit core 2.43.0 or later.

Full release notes: E-commerce 0.5.17

0.5.17 · 5 October 2026

Added

  • A re-encoded copy of a stored picture is reused on import (#71). An Etsy-filled Shopify store keeps one banner as a separate file on every listing; an import keyed on URL or checksum stored every copy. ImageDownloader.download_and_store/3 now matches a download against the imported images by a perceptual fingerprint (ImageFingerprint), confirms the match on the pictures themselves, and hands back the existing file. A reused URL is recorded in metadata["source_url_aliases"], which Catalogue.Writer indexes. A trashed copy core’s dedup hands back is restored rather than attached from the trash.
  • mix phoenix_kit_ecommerce.backfill_image_fingerprints. Run it once after upgrading, before the next Shopify media sync: images imported earlier carry no fingerprint, so until it has run no stored image is a candidate and every copy is stored again.

Changed

  • Dependency floor: phoenix_kit >= 2.43.0 and < 3.0.0, for the ImageMagick helpers the fingerprint runs through.

E-commerce 0.5.17. Install or update: {:phoenix_kit_ecommerce, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.