Git Product home page Git Product logo

Comments (5)

hueyl77 avatar hueyl77 commented on September 27, 2024

hi @johncarlson21

A 401 errors means there is an authorization error. Looks like your sources http://staging2.magicmurals.com/tools/filestack/tests/testfiles/Ultimo_TopNav041816.jpg and

http://staging2.magicmurals.com/tools/filestack/tests/testfiles/Ultimo_ColorScheme-041816L.jpg

requires an auth username and password.

In order to use collage your sources have to be accessible by the code.

from filestack-php.

johncarlson21 avatar johncarlson21 commented on September 27, 2024

Yeah.. I first had the auth turned on, but then I disabled it and it wouldn't work.
I'm going to give it a shot on another server and see how it goes.
Thanks.

from filestack-php.

hueyl77 avatar hueyl77 commented on September 27, 2024

Sure, please let us know how it goes.

p.s. Also make sure the destination folder exists and your code has permission to write to it. The created collage file will be downloaded to that destination when you make this call:

$collage_filelink = $client->collage($sources, 800, 600);

$destination = __DIR__ . '/tests/testfiles/collage-test.png';
$result = $collage_filelink->download($destination);

If you don't want it downloaded, you should be able to just grab the URL of the file generated on the Filestack server by calling the url() function on the result Filelink object.

$collage_filelink = $client->collage($sources, 800, 600);
$new_collage_image_url = $collage_filelink->url();

from filestack-php.

johncarlson21 avatar johncarlson21 commented on September 27, 2024

from filestack-php.

hueyl77 avatar hueyl77 commented on September 27, 2024

👍

Thanks for the updates. Feel free to hit me up with questions at anytime if you run into any other issues. Cheers :)

from filestack-php.

Related Issues (20)

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.