Our site makes use of gifs to enable the client to upload basic animating images. Any asset field on the site can be jpg, png or gif, and the site makes significant use of transforms for responsive imagery.
Transforms for jpgs and pngs are working fine, but the gif transforms are coming out huge (significantly bigger than the original file size), and at the point of transform generation, the server is grinding almost to a halt, with most of the Generating pending image transforms
tasks eventually stalling.
Image 1
- Natural: 2.4MB
- 400px Constrain: 4.3MB
- 800px Constrain: 19.2MB
- 1200px / 1600px / 2400px Constrain: Failed
Image 2
- Natural: 5.4MB
- None of the transforms for this seem to be being created now (I previously had to remove it because of the detrimental effect of the transform process on the server but have just tried re-uploading and visiting the page), but one of these was something like 37MB!
Technical Details:
- Craft 2.6.2967
imageDriver
is set toimagick
(which is reported to be available under Utilities / Server Info)defaultImageQuality
is set to70
- PHP Memory Limit is set to 256MB (had previously been 512MB, which may explain why none of the transforms for Image 2 are being created any more)
- PHP Max Execution Time is set to 90 seconds