macbre / phantomas

Headless Chromium-based web performance metrics collector and monitoring tool
https://www.npmjs.com/package/phantomas
BSD 2-Clause "Simplified" License
2.25k stars 141 forks source link

New responsive images metrics proposal #819

Open gmetais opened 3 years ago

gmetais commented 3 years ago

Hi, I'm thinking of adding some metrics and changing some others, to better address responsive images and the reality of screen sizes and resolutions.

Issues with the current implementation:

What I could do:

Do you or anyone have more ideas? Are metric names correct?

Maybe this kind of image analysis could even be split into a separate Node module, just like what you did with analyze-css. It would allow to deeper analyze the image: Is it correctly compressed? Would it be lighter in a different format such as JPEG or PNG. What size would it be with WebP, JPEG-XR or AVIF new generation formats?

Analyzing CSS background images would be great too, but not that easy.

macbre commented 3 years ago

@gmetais, thanks for this improvements / new metrics ideas!

What I could do:

Please, do go ahead :slightly_smiling_face:

Maybe this kind of image analysis could even be split into a separate Node module, just like what you did with analyze-css. It would allow to deeper analyze the image: Is it correctly compressed? Would it be lighter in a different format such as JPEG or PNG. What size would it be with WebP, JPEG-XR or AVIF new generation formats?

I second this idea.