twentyhq / favicon

100% free and open-source favicon provider
https://github.com/twentyhq/twenty
MIT License
238 stars 19 forks source link

[favicon] add resize and convert to png #6

Closed Weiko closed 1 year ago

Weiko commented 1 year ago

Context

We are adding a size param to the endpoint, you can now use /:domainName/:size? to fetch a specific size. If size option is empty, we fallback to default size 192. We moved some image logic to a dedicated image util class. We now store all images in png format with all "supported" sizes which are [32, 64, 128, 180, 192].

Test

Locally with different sizes and formats

Screenshot 2023-08-03 at 11 57 00