iwyg / jitimage

Just In Time image manipulation (GD, Imagick, imagemagick) with integration for laravel 4
MIT License
95 stars 8 forks source link

Using trusted-sites #39

Closed ghost closed 10 years ago

ghost commented 10 years ago

How can I use remote directory to deliver assets?

It is not described in the docs.

iwyg commented 10 years ago

Coming version adds support for aws/ftp/dropbox etc. via flysystem drivers, but for the current version you simply can't.

However you can use sources that can be accessed via http (cURL), like http://mysite.dev/images/2/200/200/5/http://media.25.tumblr.com/someimage.jpg

ghost commented 10 years ago

Well I can't i get NotFoundHttpException when I try to access remote file.

iwyg commented 10 years ago

Have you set the trusted sites? https://github.com/iwyg/jitimage#trusted-sites-array

Another reason may be that you don't have libcurl intsalled or the remote file really don't exists.

iwyg commented 10 years ago

is this solved now?

ghost commented 10 years ago

I have set the trusted sites and I have libcurl installed still it doesn't work. I get same exception when i try to apply some filter to an image only recipes are working.

Weeeeird.

iwyg commented 10 years ago

When using recipes, dynamic routes are disabled. https://github.com/iwyg/jitimage#predefined-image-processing.