Serve scaled images and specify image dimensions

28 views
Skip to first unread message

Krunal Jariwala

unread,
Mar 21, 2020, 12:28:09 PM3/21/20
to ngx-pagespeed-discuss
I am using pagespeed with nginx based reverse proxy with site hosted remotely.

For google page speed, the top recommendation to me is  to Serve scaled images here http://prntscr.com/rk8n9d. How do I configure it to serve scaled images. The current config http://prntscr.com/rk8mw8




Longinos

unread,
Mar 21, 2020, 4:29:36 PM3/21/20
to ngx-pagespeed-discuss
The filter to resize images is

pagespeed EnableFilters resize_rendered_image_dimensions


If I remeber, images need to have wxh dimensions set in html
Reply all
Reply to author
Forward
0 new messages