matthewnau / libmoji Goto Github PK
View Code? Open in Web Editor NEW๐ Bitmoji's API made easy for everyone
License: MIT License
๐ Bitmoji's API made easy for everyone
License: MIT License
Hi,
Can i use this app in android native app?
If yes can you suggest me how.
Libmoji is awesome!
๐
Have you thought about adding the Bitmoji sticker picker ? Especially the option to lookup stickers based on keywords.
Great library though @matthewnau This is awesome.
Hi first of all the library is amazing and is really powerfull what you can do combining the assets. My question is can be use on a live site our application wants to generate stickers for customers the thing is a preview url like this: https://preview.bitmoji.com/avatar-builder-v3/preview/fashion?scale=3&gender=1&style=5&rotation=0&beard=1638&brow=1538&cheek_details=-1&ear=1425&eye=1622&eyelash=2279&eye_details=1349&face_lines=1361&glasses=2389&hair=1692&hat=2544&jaw=1397&mouth=2338&nose=1452&beard_tone=7033126&blush_tone=16754890&brow_tone=11152171&eyeshadow_tone=7345154&hair_tone=65280&hair_treatment_tone=12566463&lipstick_tone=9849220&pupil_tone=7693930&skin_tone=11170379&body=0&face_proportion=7&eye_spacing=2&eye_size=0&outfit=1018474 can be display in a img tag on a site or will have legal issues with snapchat and bitmoji?
Has anyone found an endpoint which takes a selfie and generates a bitmoji? I saw snapchat can do it so it should be possible
Hello Mathew,
Game developer here, I am part of a team that is building a social impact project around elections, we are aiming to provide a highly customizable avatar creation and sharing experience, your libmoji tool would help us greatly in archiving this. I have been working on getting to integrate it into play canvas with very limited success, I would be greatly honored if you would help me out in setting it up
Can i use this library at corporate level or corporate business for setting up user picture?
@willdavidow what do I need to update in the package-lock.json for version 2.1.2? I have not worked with this before. Your insight is greatly appreciated! This should be the last thing that needs to be updated before publishing to npm.
Hi there
Thanks for the library
I would like to know if i can get the user avatarID from a mobile application(react-native- expo) so the bitmoji can look like the user instead of randomizing the features
Thanks
Would require retrieving an individual Bitmoji trait item / clothing item without the character displaying.
i.e. I would like to display the 'hair' by itself as an image without adding it to a Bitmoji.
Hi, I am running the following code based on the last bit from the documentation, and it's saving empty images, also when I follow the URL that gets created it's a blank page. Looking at the dates it's from 1.5 years ago, so I was wondering if bitmoji changed their APIs or am I not using the library correctly?
const fs = require('fs');
const https = require('https');
const libmoji = require('libmoji');
function saveImageToDisk(url, localPath) {
var fullUrl = url;
var file = fs.createWriteStream(localPath);
var request = https.get(url, function(response) {
response.pipe(file);
});
};
let comicId = libmoji.getComicId(libmoji.randTemplate(libmoji.templates));
let avatarId = libmoji.getAvatarId("https://render.bitstrips.com/v2/cpanel/8968038-316830037_35-s5-v1.png?transparent=1&palette=1");
let outfit = libmoji.randOutfit(libmoji.getOutfits(libmoji.randBrand(libmoji.getBrands("male"))));
const bitmojiUrl = libmoji.buildRenderUrl(comicId,avatarId,1,2,outfit);
console.log(bitmojiUrl);
saveImageToDisk(bitmojiUrl, 'sample.jpg');
saveImageToDisk(bitmojiUrl, 'sample.png');
Thanks for any help!
Hi Matthew,
Is it possible to use a Bitmoji ID to create a preview URL?
Kind regards,
Nik
Solved
I'm struggling to access rendered avatar via javascript cause it doesn't support "Access-Control-Allow Origin"
@matthewnau I'm not sure how often the Bitmoji/Snapchat folks are adding new stuff (outfits
, brands
and traits
?) to the various Bitmoji endpoints...
Do you think it makes sense to (before committing builds) have an update-data
step when running the build
command that hits the endpoint(s) and grabs the latest JSON and writes to the build
folder, archiving the previous version in a new folder/file location, something like: /archive/tempates_{date-removed-from-main-build}.json
... or something like that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.