- Issue created by @vaish
Auto retina assumes there are only two Image Toolkits available. If Image Toolkit Id is not equal to "imagemagick" it will assume that gd library must be in use. There is at least one more Image Toolkit that is not accounted for: Imagick → . If that toolkit is in use, auto retina will fail because it incorrectly assumes Image Toolkit is set to Gd .
See: src/Entity/RetinaImageStyle.php
method createDerivative()
.
Install Imagick → module. Go to Administration » Configuration » Media » Image toolkit and change the image toolkit to Imagick.
Explicitly check for the image toolkit id. If unknown one is encountered report the error or silently fail. Report unsupported Image Toolkit on the Status report page.
As a bonus, support for Imagick could also be implemented.
Implement the proposed solution.
Implement hook_requirements()
and add entry for Auto Retina module to Status Report page.
None.
None.
Active
1.3
Code