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
When running /craft imager-x/generate -v press --interactive 0 we get the following error message in console.log:
2022-09-12 12:55:24 [-][-][-][error][spacecatninja\imagerx\transformers\CraftTransformer::getTransformedImage] An error occured when trying to open image: Unable to open image /nfs/web_mwn/www/2/***/webserver/htdocs/assets/press/Bild7.jpg
Looking further into the exception, I can find this message:
Also, setting instanceReuseEnabled to true reduces the amount of failing images, but does not work for all. Switching to GD as image driver also seems to do the trick.
I'm submitting a...
Steps to reproduce
Description
Unfortunately our hosting provider set quite low ImageMagick limits (
/etc/ImageMagick-6/policy.xml
):Our transforms are set up like this
Our pregenerate config like this
When running
/craft imager-x/generate -v press --interactive 0
we get the following error message inconsole.log
:2022-09-12 12:55:24 [-][-][-][error][spacecatninja\imagerx\transformers\CraftTransformer::getTransformedImage] An error occured when trying to open image: Unable to open image /nfs/web_mwn/www/2/***/webserver/htdocs/assets/press/Bild7.jpg
Looking further into the exception, I can find this message:
So it seems that this transformation hits the ceiling of the 256MiB memory limit and fails.
Using fewer transformations, like the following seems to work (but is obviously not our goal):
Also, setting
instanceReuseEnabled
totrue
reduces the amount of failing images, but does not work for all. Switching to GD as image driver also seems to do the trick.Here's one example of a failing image:
Additional info
The text was updated successfully, but these errors were encountered: