Giter VIP home page Giter VIP logo

faceapp-php's Issues

Difine size when saving

When we use true parameter $FaceApp->applyFilter($photoCode, $filter, true);
How can we define a size for the croped output file?

faceapp.php:68

Hi,

Iam getting error in faceapp.php line 68.

Error display like this :

PHP Fatal error: Uncaught Exception: Too many requests. Please try again later. in FaceApp-PHP-master/FaceApp/faceapp.php:68

Fatal error !

It works in localhost. but when i uploaded in my server, this message showed "Default value for parameters with a class type hint can only be NULL in /home/sajjadam/public_html/faceapp/api/faceapp.php on line 22"

Proxy not working

Hello i juest added live proxy, but it showing "Unknown Error : 0"

No response?

Hi!
I have got no response. "no response...!"
Is there something changed with the FaceApp?
Thanks

FaceApp Update

New image returns with label over face saying "Please update to the newest version of FaceApp". Is there a workaround?

multiple filters

I want use two filters so I have modified my code as follows

<?php
require('FaceApp/faceapp.php');
try {
    $FaceApp = new FaceApp(__DIR__.'/test/image.jpg');
    $photoCode = $FaceApp->getPhotoCode();
    $filter = 'old';
    $FaceApp->applyFilter($photoCode, $filter, true);
    if ($FaceApp->savePhoto(__DIR__.'/test/image_old.jpg')) {
        $FaceApp2 = new FaceApp(__DIR__.'/test/image_old.jpg');
        $photoCode2 = $FaceApp2->getPhotoCode();
        $filter2 = 'smile';
        $FaceApp2->applyFilter($photoCode2, $filter2, true);
        if ($FaceApp2->savePhoto(__DIR__.'/test/image_old_smile.jpg')) {
            header('Content-Type: image/jpeg');
            readfile(__DIR__.'/test/image_old_smile.jpg');
        }
    }
} catch (Exception $e) {
    exit($e->getMessage());
}

but some reason second filter 'smile' doesn't seem to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.