Comments (5)
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.
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.
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.
from filestack-php.
👍
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)
- Is there way to get all assets file?
- $filelink->download($path) fails with HTTP 400 Bad Request
- Uploading Fails using filestack-php
- Example is using an unknown variable
- Filestackclient upload - option 'path' does not set the s3 directory correctly HOT 3
- Custom CNAME Support Missing HOT 1
- disable guzzlehttp ssl check HOT 1
- Work directly with the filestack url
- Improve return type-hints HOT 1
- Document Detection function is not present in php sdks
- Guzzle 7 Support HOT 3
- Filelink convertFile with option docinfo not working
- [Feature Request] Workflows missing from metadata
- How to set upload path?
- bad request on executing the download
- How to OCR an image
- Unable to upload from URL
- Call to undefined function GuzzleHttp\Promise\settle() HOT 5
- Is this project still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filestack-php.