duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs

Home Page:https://duckduckhack.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MagicTheGathering: Reduce imagery size

tossj opened this issue · comments

commented

Description

I moved this IA to a new API (#3531), but I think the images I chose to display are too large. They are over 1 MB each, and searches sometimes return hundreds of cards, so hundreds of megabytes of imagery is downloaded.

There are other image options available, that are smaller. The fix would involve changing one line of code https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/share/spice/magic_the_gathering/magic_the_gathering.js#L39.

Steps to recreate

Visiting https://duckduckgo.com/?q=fire+mtg&t=ffab&ia=games will download over 200 MB when fully loaded. Changing the image files to use normal would reduce the downloaded amount to about 23 MB for the same search.

People to notify

@moollaza


Instant Answer Page: https://duck.co/ia/view/magic_the_gathering