weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
1.84k stars 188 forks source link

ICOs do not use the correct icon size #389

Closed dgxo closed 9 months ago

dgxo commented 9 months ago

I use wsrv for a link preview thing on my website, and Discord uses an ico file for their image meta tag, which was passed into wsrv.nl, but it returned a very low resolution image upscaled to 100x100.

Seems like it selects the lowest quality (or the first) icon from the ico file to use and scale.

For example, Discord's image ico is usually high quality, but the resized version is very low res, and just upscaled, looking really ugly.

Maybe either the highest quality icon is selected, or probably depending on processing times maybe using the closest size that's larger than the target.

kleisauke commented 9 months ago

Duplicate of #170