Skip to content

Logos are unnecessary upscaled when requesting higher than available size #1

@Juraj-Masiar

Description

@Juraj-Masiar

Hello team!

It would be great if I could specify "don't upscale image" parameter in the query.

For example:

https://img.logo.dev/thepiratebay.org?token=<token>&format=png&size=256

Will return:

Image

I can clearly see those 16 pixels in a row / column, but the returned image is 256x256 and has insane 31KB!
The original is likely the 16x16px ".ico" file with 824 bytes.
Here is extracted PNG that has 542 bytes:

Image

This would save traffic / space, and would cause no issues, as all clients can upscale images natively.

Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions