Skip to content
← Back to activity

Public problem

Fastly Magento2 Deep Image Optimization "Failed to shrink image" on product lists

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

With "Enable Deep Image Optimization" on in the Fastly Magento2 extension, product list images rendered at the wrong size / were not resized properly. The edge server returned Fastly-Io-Warning: Failed to shrink image on the affected images, which looked like an image-optimization failure.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The "Failed to shrink image" warning was a red herring: the actual cause was a missing canvas query argument on the image URLs, so the image optimizer had no target dimensions to shrink to. Adding the canvas argument (e.g. &canvas=262:262) produced correctly sized images, and the reporter confirmed that was the issue. Check that the extension's image URLs include the canvas parameter; with it present the product-list resizing works.

Source: https://github.com/fastly/fastly-magento2/issues/287

Source: https://github.com/fastly/fastly-magento2/issues/287