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

How to download spritesheet from custom URL as in earlier versions #18

Closed
iamsaksham opened this issue Oct 20, 2016 · 8 comments
Closed

Comments

@iamsaksham
Copy link

I want to download a low quality spritesheet to consume low bandwidth for slow connections, it was there in earlier version but looks like its been removed. Now the _64.png starts downloading itself which are quite large files.
Is there anyway if I can customize it??

@iamsaksham
Copy link
Author

@EtienneLem @rafbm Can we download low quality spritesheet? Or can we give it our own customURL to download the spritesheet? Because the one that gets downloaded itself takes around 7-8minutes to download on a slow connection which is quite expensive for my project

@EtienneLem
Copy link
Member

For now use the 0.2.10 version https://github.com/missive/emoji-mart/tree/v0.2.10, will add back support for custom sheetURL in a future version.

@EtienneLem
Copy link
Member

As of v0.3.1 you can set sheetSize, which is any of these: 16, 20, 32, 64.
You can refer to README#sheet-sizes to know the filesize of each.

@iamsaksham
Copy link
Author

@EtienneLem emoji-mart 0.2.10 version is not available on npm. Please publish version 0.2.10 on npm

@iamsaksham
Copy link
Author

iamsaksham commented Nov 17, 2016

@EtienneLem @rafbm Please publish version 0.2.10 on npm. I'm not able to release new emojis for production as I need v0.2.10. And is there any estimate to when will the sheetUrl be back in the latest updates?

@EtienneLem
Copy link
Member

I’m having issues with npm trying to publish the v0.2.10, however v0.2.9 should do just fine. Any reason why the latest version doesn’t work for you? I’ve added a way to set the sheet size back, or perhaps you want to serve it locally?

@iamsaksham
Copy link
Author

I've compressed the images, sheet_64 is now around 1mb. So i'd like to serve them from my cdn.
v0.2.9 wont work in firefox as it detects some empty objects for emojis as hasOwnProperty is missing in the loop.
I've started to add the sheetURL back, will keep it optional prop. I'll generate the pull request in a day or two. Till then v0.2.10 would be fine, if you can publish it on npm

@EtienneLem
Copy link
Member

Gotcha, I think it worked. v0.2.10 should be available on npm.

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