Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load ThumborUrl from an image url #27

Open
avatar opened this issue Oct 25, 2017 · 1 comment
Open

Load ThumborUrl from an image url #27

avatar opened this issue Oct 25, 2017 · 1 comment

Comments

@avatar
Copy link

avatar commented Oct 25, 2017

Hi,
I was wondering, is it possible to load an url into a ThumborUrl Class, to then perform other actions on it?

For example (pseudo code):

$filename = "//example.org/****thumbor-signature***/0x95:300x395/300x300/http://path-to-image.jpg";

$image = Thumbor\Url\Builder::construct(THUMBOR_SERVER, THUMBOR_SECRET, $filename);
echo $image; // will output the same as $filename;

$image->resize(500,500);
echo $image; // will output //example.org/****NEW-thumbor-signature***/0x95:300x395/500x500/http://path-to-image.jpg

I suppose this is not possible, but (for me) it would be a nice add-on...

Thanks!
Ben

@bkonetzny
Copy link

Well depending on your thumbor configuration this should work with this library. We are using phumbor with the latest thumbor which has a loader configured with http fallback, and this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants