WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.73k stars 1.7k forks source link

Add own photo as sticker #258

Closed HareshSolankiibl closed 5 years ago

HareshSolankiibl commented 5 years ago

Hello, how can i convert own pic/photo as sticker. can is possible to i convert png to webp programatically? or other way is possible?

sharadvermasv commented 5 years ago

Use Photoshop and save it as png through android studio convert it to webp

HareshSolankiibl commented 5 years ago

Use Photoshop and save it as png through android studio convert it to webp

thanks dear for replay, but what for when i take photo using camera in device?

TechPakka commented 5 years ago

@sharadvermasv im using this method.but when png is encoded using android studio's "lossy" converter its gives me the error "sticker pack does not exist". But using the lossless solved the issue. But i wish i could encode using "lossy" because it can reduce the size alot.Are you facing the same issue? Any solution?

simonzhexu commented 5 years ago

You can reference the photos you took, see https://github.com/WhatsApp/stickers/blob/master/Android/README.md#expose-files-that-are-stored-internally-as-stickers-through-contentprovider on how to access those files. If you still have questions on how to get the image from camera, Stackoverflow would be more proper place to get answers.