All Projects → lolPants → faceapp.js

lolPants / faceapp.js

Licence: ISC license
JavaScript API wrapper for the FaceApp tool for Android and iOS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to faceapp.js

Adobe Scripts Panel
Scripting Panel for After Effects, Illustrator, and Photoshop
Stars: ✭ 211 (+257.63%)
Mutual labels:  photoshop
adobe-discord-rpc
Discord Rich Presence extension for your adobe apps!
Stars: ✭ 383 (+549.15%)
Mutual labels:  photoshop
photoshop-scripts
Photoshop Scripts for the TinyPNG & TinyJPG Photoshop plugin
Stars: ✭ 43 (-27.12%)
Mutual labels:  photoshop
expresso
Expresso! Exporter is a Photoshop extension aimed at improving the texturing workflow for 3D Artists. It automatically exports textures to common file formats (TGA, PNG, etc.) out of PSDs containing multiple maps.
Stars: ✭ 57 (-3.39%)
Mutual labels:  photoshop
PhotoMP
The AppImage version of GIMP for those who come from Photoshop.
Stars: ✭ 68 (+15.25%)
Mutual labels:  photoshop
CURL
Code for the ICPR 2020 paper: "CURL: Neural Curve Layers for Image Enhancement"
Stars: ✭ 177 (+200%)
Mutual labels:  photoshop
Vue Color
🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more http://vue-color.surge.sh
Stars: ✭ 2,268 (+3744.07%)
Mutual labels:  photoshop
instagram-photoshop-actions
Photoshop Actions to mimic Instagram filters
Stars: ✭ 13 (-77.97%)
Mutual labels:  photoshop
tools-generation-detection-synthetic-content
Compilation of the state of the art of tools, articles, forums and links of interest to generate and detect any type of synthetic content using deep learning.
Stars: ✭ 107 (+81.36%)
Mutual labels:  photoshop
ovid-editor
Adobe panel providing the most advanced scripting environment possible -- Typescript, app DOM autocomplete, full I/O features and more
Stars: ✭ 43 (-27.12%)
Mutual labels:  photoshop
uxp-photoshop-plugin-samples
UXP Plugin samples for Photoshop 22 and higher.
Stars: ✭ 131 (+122.03%)
Mutual labels:  photoshop
Fast-AgingGAN
A deep learning model to age faces in the wild, currently runs at 60+ fps on GPUs
Stars: ✭ 133 (+125.42%)
Mutual labels:  faceapp
ExtendScript
🍆 Getting started with ExtendScript ✨ by Jeff Davis
Stars: ✭ 23 (-61.02%)
Mutual labels:  photoshop
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: ✭ 220 (+272.88%)
Mutual labels:  photoshop
lut
color lookup tables (LUTs) for color grading
Stars: ✭ 84 (+42.37%)
Mutual labels:  photoshop
Pngquant Photoshop
Photoshop plug-in for saving PNG images with pngquant compression
Stars: ✭ 197 (+233.9%)
Mutual labels:  photoshop
bukalapak.js
Javascript API wrapper
Stars: ✭ 36 (-38.98%)
Mutual labels:  javascript-api-wrapper
Photoshop-Scripts
A collection of Photoshop scripts.
Stars: ✭ 53 (-10.17%)
Mutual labels:  photoshop
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-71.19%)
Mutual labels:  photoshop
whatsapp-jpeg-repair
A handy tool to fix jpeg files downloaded from WhatsApp and prevent errors upon opening these files in Adobe Photoshop.
Stars: ✭ 30 (-49.15%)
Mutual labels:  photoshop

😎 FaceApp.js

NPM version NPM downloads Build status Dependencies

JavaScript API wrapper for the FaceApp tool for Android and iOS. Licensed under ISC License.

⚠️ Warning

faceapp.js is an unofficial reverse-engineering of the mobile clients and the servers they interact with. This means that it is subject to any of their limitations.
This includes their rate limits. I will not attempt to bypass this as that would break their terms of service, please stop asking .

USE AT YOUR OWN RISK.

Rate Limits

NOTE: These are just an estimation based on my own testing.
The FaceApp servers only accept 100 requests in a 10 minute window. Because process() uses two API calls, you can only use process() 50 times during that 10 minute window.

💾 Installation

The package is on the NPM registry as faceapp. Simply install it with your NPM client of choice.

🔧 Usage

First, import the module:

const faceapp = require('faceapp')

The process() function takes two parameters:

  • path: string | file: Buffer - Path to the image file you would like to process. Or a Buffer object representing an image.
  • filterID: string - FaceApp Filter ID

📝 Example

// Import the module
const faceapp = require('faceapp')

// Process the image (filepath)
let image = await faceapp.process('path/to/image.png', 'smile_2')

// Process the image (buffer)
// First we have to get a buffer
let { body } = await superagent.get('http://example.com/image.png')
let image = await faceapp.process(body, 'hot')

CLI

There is a CLI available. Install the package globally using npm i -g faceapp and then run faceapp to access the CLI.

📜 Filter IDs

Known Filters:
no-filter smile smile_2 hot old
young female_2 female male pan
hitman hollywood heisenberg impression lion
goatee hipster bangs glasses wave
makeup

However, you can get an up-to-date list of all available filter IDs from the API directly using the listFilters function.

let filters = await faceapp.listFilters()
// Returns an array of Filter objects

let filters = await faceapp.listFilters(true)
// Returns an array filter ID strings

Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].