pronamic / wp-pay-logos

Logos for the WordPress payment processing library.
https://pronamic.github.io/wp-pay-logos/
5 stars 2 forks source link

Remove PNG files #11

Closed remcotolsma closed 9 months ago

remcotolsma commented 11 months ago

I suggest removing the PNG images in this library as much as possible, because of the following arguments:

kjtolsma commented 11 months ago

@remcotolsma Onderstaande is niet helemaal waar:

SVG images have much smaller file sizes than PNG images. This can improve the loading speed of your website.

Wat ChatGPT 🤓 er over zegt:

In summary, SVG is often smaller than PNG for simple graphics and logos, but it's not a strict rule. For complex images or images with specific requirements (e.g., high-resolution, detailed textures), a PNG file may be smaller or more appropriate. The choice between SVG and PNG should be based on the specific needs of your project and the characteristics of the image you're working with.

Zie bijvoorbeeld dit voorbeeld:

PNG (8kb) rabobank

SVG (29kb) rabobank

Desalniettemin ben ik wel een voorstander van het gebruik van SVG's!

rvdsteege commented 11 months ago

SVG (29kb)

Inefficiënte SVG; zelfde afbeelding kan ook wel de helft kleiner (15 kb) 😉

Rabobank

remcotolsma commented 9 months ago

Removed in https://github.com/pronamic/wp-pay-logos/commit/57532591d1afe9904f00ff7d5c76d0ccc98065bc.