Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagick plugin: Reloading site with suffixed images creates images with repeated suffixes #269

Closed
paulrobertlloyd opened this issue Sep 27, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@paulrobertlloyd
Copy link
Contributor

I currently have my images folder setup to generate the following image transformations:

export default {
  imagick: [{
    format: "jpg",
    resize: [1440, 960],
  }, {
    format: "webp",
    resize: [1440, 960],
  }, {
    resizeCrop: [1200, 630],
    format: "jpg",
    suffix: "-summary",
  }],
};

One of these transformations includes the suffix 'summary'. Every time I save a file, these images are regenerated such that the original images are not replaced, but new images are created with multiple suffixes. Example output:

🔥 /media/1661522612-summary-summary-summary-summary-summary-summary-summary.webp /media/1661522612[1].jpg
🔥 /media/1658218961-summary-summary-summary-summary-summary-summary-summary.webp /media/1658218961[1].jpg
🔥 /media/1662581205-summary-summary-summary-summary-summary-summary-summary.webp /media/1662581205[1].jpg
🔥 /media/1660678918-summary-summary-summary-summary-summary-summary-summary.webp /media/1660678918[1].jpg
🔥 /media/1653682070-summary-summary-summary-summary-summary-summary-summary.webp /media/1653682070[1].jpg
🔥 /media/1653743563-summary-summary-summary-summary-summary-summary-summary.webp /media/1653743563[1].jpg
🔥 /media/1658218961-summary-summary-summary-summary-summary-summary-summary.jpg /media/1658218961[0].jpg
🔥 /media/1653682043-summary-summary-summary-summary-summary-summary-summary.jpg /media/1653682043[0].jpg
🔥 /media/1661340796-summary-summary-summary-summary-summary-summary-summary.webp /media/1661340796[1].jpg
Changes sent to the browser

I have caching enabled (i.e. the default plugin setting), if that helps.

@paulrobertlloyd paulrobertlloyd changed the title Imagick plugin: Reloading site with sufficed images creates images with repeated suffixes Imagick plugin: Reloading site with suffixed images creates images with repeated suffixes Sep 27, 2022
@oscarotero
Copy link
Member

Mmm, ok this is a bug.
As a temporary workaround, move the suffixed version to first or second position (not last).
It will be fixed in the next version.

@oscarotero oscarotero added the bug Something isn't working label Sep 27, 2022
@oscarotero oscarotero added this to the 1.12.0 milestone Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants