mitko-janeski opened a new issue #2068:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2068


   Hello guys I want to report a problem, in my HTML file I have 
   
   <img src="file.jpg" alt="File Name" class="mr-2" width="32" height="32">
   
   File after pagespeed-mod
   <img 
src="data:image/webp;base64,UklGRtYBAABXRUJQVlA4IMoBAAAwCACdASogACAAPm0skUWkIqGYBABABsS1AE6ZdnFfCB2ojfauANBN9TzP583ei2nuKFTF1HroFeSRRwtmfLKZxZQg1Wp2VjEuAAD+/9TKg8t7Ku+x4b//BNO1dxn6ev1NxZdU8UCJJ9p+Fm+5nN9/997//uPwidX/Hb/RmJW/L2d8mKv9/8iuFbWfe/prEgm7bqLgNR55KnD87txBM/RPnP0Vbc/9A1eyHw1NPbxX/vheNsd0n4za+DC5SohhFU/AYR6dBy1GcPtjtWkRwemzf+MgkMfM8u1dASE9F3TgzFDMXCDt6Jf2dfdQzZ+fMrRZuvwA5nFRN93SYQmR4f/GxVo5339/8f0klPQLdOyfVN/r/18dnofdoYZoclbnI4La0mr1d6Qbfjt13+ZR3/jsqNP/pTqzBae2Bydd/H98ON6D/FUl8V1X+Ntb9dGGzb/gFVZdo07h9epurkmMpmxGhxKh6F2d3QTSnCWlz7B5J7o0+Z9+lntP8ZNKnbMi5tSLzmblUi1ROhn5wAKD2vLU1nS+eoz0gdhU5V1L6vZz0FqcG2r7K3e4wBTV1HMLIXnz8QSMEtdfhmVqRAG7wubDSgB5bsHUMEAAAA=="
 alt="File Name" class="mr-2" data-pagespeed-url-hash="319205374" 
data-pagespeed-onload="pagespeed.CriticalImages.checkImageForCriticality(this);"
 onload="var elem=this;if (this==window) 
elem=document.body;elem.setAttribute('data-pagespeed-loaded', 1)" 
id="pagespeed_img_Ny12gAmBpH1" data-pagespeed-loaded="1">
   
   As you can see width and height attributes are removed and inside Google 
Lighthouse Report I get this:
   "Image elements do not have explicit width and height"
   
   How can I resolve this problem ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to