missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.59k stars 826 forks source link

How to get base64 image as output? #239

Closed shyamal890 closed 5 years ago

ivan-rey-cv commented 5 years ago

I hope emoji-mart caters this feature. As of now, EmojiMart.Emoji renders a span wherein the background is set to the fetched image sheet. Unfortunately, you can not see in advance the background size nor the position of the emoji within the fetched image sheet.

Is there a possible way to get the background size/position in advance? Or perhaps get the base64 image directly?

nolanlawson commented 5 years ago

I'm not sure I understand this issue, or what is desired. What is the use case you're trying to satisfy where you need to know the background size/position? Also, what does this have to do with "getting the base64 image as output"? :)

ivan-rey-cv commented 5 years ago

It was for using the emoji image itself to be drawn in the canvas. The rendered Emoji have background image of the whole sheet, I was hoping to get the specified position of that specific emoji. Or possibly get the image itself. Nonetheless, I just used the native one.

On Fri, 8 Mar 2019 at 10:40 Nolan Lawson notifications@github.com wrote:

I'm not sure I understand this issue, or what is desired. What is the use case you're trying to satisfy where you need to know the background size/position? Also, what does this have to do with "getting the base64 image as output"? :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/missive/emoji-mart/issues/239#issuecomment-470782785, or mute the thread https://github.com/notifications/unsubscribe-auth/AeYDLHe_EtzbFuN5XIyGkdnlFV-A8Alxks5vUc2DgaJpZM4X9bB4 .

nolanlawson commented 5 years ago

OK, it sounds like this issue has been resolved please reopen as necessary! Thanks. :)