Image optimization for PageSpeed analysis

22 views
Skip to first unread message

Adrian Ursu

unread,
Jan 28, 2018, 9:17:40 AM1/28/18
to Support
Hi guys,
I am trying configure my IIS Speed to handle some image optimizations.
Specifically, I need to convert JPG to lossless and insert image dimensions inline.
I have played with different combinations but I could not do it.
I suppose the filters should be loaded in a specific order.
Here is how my config looks like:

IISpeed FileCachePath C:\iispeed_cache\
IISpeed FileCacheSizeKb 102400
IISpeed FileCacheCleanIntervalMs 36000000
IISpeed FileCacheInodeLimit 500000
pagespeed on
pagespeed RewriteLevel CoreFilters
pagespeed EnableFilters convert_to_webp_lossless,resize_mobile_images
pagespeed EnableFilters sprite_images,lazyload_images,in_place_optimize_for_browser,insert_image_dimensions
pagespeed EnableFilters inline_images
pagespeed EnableFilters recompress_images
pagespeed EnableFilters convert_gif_to_png
pagespeed EnableFilters convert_jpeg_to_progressive
pagespeed EnableFilters recompress_jpeg
pagespeed EnableFilters recompress_png
pagespeed EnableFilters recompress_webp
pagespeed EnableFilters strip_image_color_profile
pagespeed EnableFilters strip_image_meta_data
pagespeed EnableFilters jpeg_subsampling
pagespeed EnableFilters convert_png_to_jpeg
pagespeed EnableFilters resize_images
pagespeed EnableFilters convert_jpeg_to_webp
pagespeed EnableFilters convert_to_webp_lossless

Thank you,
Adrian

Otto van der Schaaf

unread,
Jan 28, 2018, 9:51:36 AM1/28/18
to Adrian Ursu, Support
Hi,

The order in which you enable filters has no relation to the order in which they are executed. So that's probably not it.

You can get the module to output debug comments around optimization decisions by enabling the debug filter.
You can also do that by adding ?PageSpeedFilters=+debug on the querystring.
E.g.:  view-source:https://www.modpagespeed.com/examples/resize_rendered_dimensions/image_resize_using_rendered_dimensions.html?PageSpeed=on&PageSpeedFilters=rewrite_images,insert_image_dimensions,debug

Perhaps you need resize_rendered_image_dimensions enabled:

Lastly, the module works with a deadline, so it may take a couple of refreshes to work. For computing the rendered image dimensions,
the module relies on browsers to beacon back dimensions, so you'll need actual page loads for the filter to learn about the page and fully
apply.

Hope that helps!

Kind regards,

Otto van der Schaaf

We-Amp B.V.
Aalsmeerderweg 14
1432 CR Aalsmeer
The Netherlands
Phone+31 6 25576077
E-mail: osc...@we-amp.com
Website: www.we-amp.com



Adrian Ursu

unread,
Jan 28, 2018, 9:58:22 AM1/28/18
to Otto van der Schaaf, Support

Hi Otto,

Thank you very much for your suggestions.

I will try the recommendations.

 

Adrian Ursu
Managing Partner

M: + 40 722.247.371
E:
adria...@brandfusion.ro

logo

36 Sighisoara St., sector 2, 021936, Bucharest, Romania
T: +4 021 528 02 70
F: +4 021 528 02 69
E:
off...@brandfusion.ro
W:
www.brandfusion.ro

facebookyoutubelinkedinflickrinstagram

 

Interesat de viitorul brandului tău? 

Apelează la noile noastre Pachete de Analiză de Brand.

Kind regards,

 

Image removed by sender.

 

 

image001.png
image002.png
image003.png
image004.png
image005.png
image008.png
image009.jpg
Reply all
Reply to author
Forward
0 new messages