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

Larget srcset transform failing #215

Open
ursbraem opened this issue May 26, 2023 · 0 comments
Open

Larget srcset transform failing #215

ursbraem opened this issue May 26, 2023 · 0 comments

Comments

@ursbraem
Copy link

ursbraem commented May 26, 2023

I'm submitting a...

  • [x ] general question

Description

We have an image transform with a few srcset variants:

{% set transformedImages = craft.imager.transformImage(imageSource, [{ width: imageBaseWidth * 0.5 }, { width: imageBaseWidth * 0.75 }, { width: imageBaseWidth }, { width: imageBaseWidth * 1.5 }], { ratio: imageRatio, position: coordinates, format: 'webp' }) %}`
...
<img
  class="{{ imageClass }}"
  srcset="{{ craft.imager.srcset(transformedImages) }}"

Apparently, the largest transform fails sometimes, resulting in the image being 0 bytes and not displaying as broken in the frontend.

ScreenShot 2023-05-26 at 13 22 30@2x

This does not happen when adding the image and rendering it in the firstplace, but over time.

Deleting the empty file and clearing Blitz Cache solves the error for the moment.

Can you help us debug it with a few hints?

  • Why is the image regenerated in the first place? It should be generated once and for all, shouldn't it?
  • Which are the memory limits we should look at?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant