Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Use base_path #9

Open
glennjacobs opened this issue Dec 4, 2013 · 4 comments
Open

Use base_path #9

glennjacobs opened this issue Dec 4, 2013 · 4 comments
Labels

Comments

@glennjacobs
Copy link

In the code there are these comments...

// is there ant merit in this being base_path()?
// if it was base_path() then any image on the filesystem could be served - is this actually desirable?

I suggest it would make sense to change this, as normally you'd want to be processing images which have been uploaded - and you wouldn't want to be uploading to the public folder.

@kevbaldwyn
Copy link
Owner

Yeh, I've not really used this in a project yet, so still fiddling with useage. The config would need to be updated to be made clear. I'm happy to accept pull requests if you make any changes.

@glennjacobs
Copy link
Author

Ok great, never done a pull request before so I suppose it's time to learn!

I thought another nice idea might be to store predefined transformations in the config which can then just be referenced by name.

Sent from my iPhone

On 5 Dec 2013, at 02:14, Kevin Baldwyn notifications@github.com wrote:

Yeh, I've not really used this in a project yet, so still fiddling with useage. The config would need to be updated to be made clear. I'm happy to accept pull requests if you make any changes.


Reply to this email directly or view it on GitHub.

@kevbaldwyn
Copy link
Owner

Yeh that's not a bad idea.

On 5 December 2013 07:57, glennjacobs notifications@github.com wrote:

Ok great, never done a pull request before so I suppose it's time to
learn!

I thought another nice idea might be to store predefined transformations
in the config which can then just be referenced by name.

Sent from my iPhone

On 5 Dec 2013, at 02:14, Kevin Baldwyn notifications@github.com
wrote:

Yeh, I've not really used this in a project yet, so still fiddling with
useage. The config would need to be updated to be made clear. I'm happy to
accept pull requests if you make any changes.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-29877963
.

@massimoselvi
Copy link

please change this line on "ImageServiceProvider.php" file:
public function boot() {
Config::package('kevbaldwyn/image', app_path() . '/config');
...

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

No branches or pull requests

3 participants