You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our Sentry, we're periodically seeing errors where Imager (or rather Color Thief, upon a function call triggered by Imager) is trying to load an image file that hasn't been transformed yet. This triggers a Runtime Exception as well as a 500 Server Error for the first user to visit the site. All subsequent visits (when the image has been transformed) work without problems.
Is it possible that a check is missing which determines whether or not the image has been transformed and can be processed further?
We are querying the dominant color in our Twig like so:
{# -- Dominant Color (use last image from final images) -- #}
{% if transformedImages | last and (transformedImages | last).url %}
{% set dominantColor = craft.imager.getDominantColor((transformedImages | last).url, 10) %}
{% endif %}
Everything else is done in Imager (see Stack Trace in the screenshot below):
The text was updated successfully, but these errors were encountered:
In our Sentry, we're periodically seeing errors where Imager (or rather Color Thief, upon a function call triggered by Imager) is trying to load an image file that hasn't been transformed yet. This triggers a Runtime Exception as well as a 500 Server Error for the first user to visit the site. All subsequent visits (when the image has been transformed) work without problems.
Is it possible that a check is missing which determines whether or not the image has been transformed and can be processed further?
We are querying the dominant color in our Twig like so:
Everything else is done in Imager (see Stack Trace in the screenshot below):
The text was updated successfully, but these errors were encountered: