thomastuts / hearthstone-api

0 stars 0 forks source link

Find a way to construct card images #2

Open thomastuts opened 10 years ago

thomastuts commented 10 years ago

See #5 for assets

thomastuts commented 10 years ago

As of yet, there's no real way to find out which card ID is mapped to which art file, since their file names are vastly different. I haven't been able to discover a pattern yet.

I'm quite sure that the way Hearthhead/Hearthpwn gathered their card images was by making screenshots in-game of every card in the collection, and then run them through a batch processor that only selects the actual card image. This theory is further supported by the fact that Hearthhead also has animated cards for the golden versions, something which seems extremely hard to recreate from scratch.

As a last resort, we can scrape the Hearthhead database and save the images, their URL scheme is really easy since they only use the card ID:

http://wow.zamimg.com/images/hearthstone/cards/enus/original/CS2_080.png