Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are the card images stored as base64 encoded data? #51

Closed
tconn89 opened this issue Feb 22, 2018 · 1 comment
Closed

Why are the card images stored as base64 encoded data? #51

tconn89 opened this issue Feb 22, 2018 · 1 comment

Comments

@tconn89
Copy link

tconn89 commented Feb 22, 2018

Is this an optimization for indexed searching for Algolia? Stack overflow says base64 encoded images use up more memory..

@Shipow
Copy link
Owner

Shipow commented Sep 12, 2018

Cards are re-composed by javascript and so the output is base64 encoded. For performances sake all assets for the card decoration in png and the artwork in jpg are downloaded separately. There is more details on the medium story https://stories.algolia.com/a-painstakingly-crafted-search-for-hearthstone-c21b3fa4223c

@Shipow Shipow closed this as completed Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants