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

Croppa not cropping anymore after pictures path changes, need logs #162

Open
gilles6 opened this issue Jan 31, 2018 · 1 comment
Open

Croppa not cropping anymore after pictures path changes, need logs #162

gilles6 opened this issue Jan 31, 2018 · 1 comment

Comments

@gilles6
Copy link

gilles6 commented Jan 31, 2018

After having made some changes with images path, I can't get Croppa to work again. Are there logs somewhere to see what Croppa is trying to do and why it's not generating my images anymore ?

Below is a single test I made:

  1. php artisan tinker
  2. public_path() => "/Users/me/code/myproject/public"
  3. I put a foo.jpg in the public folder
  4. Croppa::url('foo.jpg', 200)
  5. ~/code/myproject$ find . | grep foo*.jpg => ./public/foo.jpg // one file only

What's wrong in this example ?

@m0zart89
Copy link

m0zart89 commented Aug 22, 2018

Croppa::url('foo.jpg', 200) just returns string '/uploads/foo-200_.jpg' and no more. When you request '/uploads/foo-200_' croppa generates thumb.
You can generate it programmatically by render method ( watch manual ).

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