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

Thumbs are not created when thumb folder is sibling of uploads #144

Open
ivansammartino opened this issue Nov 18, 2016 · 1 comment
Open

Comments

@ivansammartino
Copy link

Hello,
I have a strange issue with paths: given a source url as uploads/users/img102.jpg

This doesn't work:

'src_dir' => public_path('uploads'),
'crops_dir' => public_path('thumbs'),
'path' => 'uploads/(.*)$',
'url_prefix' => '/thumbs',

The url is generated correctly (i.e. /thumbs/users/img102-150x150.jpg?token=9cbe7f5370cec71a5db47180a92ab0eb ) but no thumbnail is created

This works:

'src_dir' => public_path('uploads'),
'crops_dir' => public_path('uploads'),
'path' => 'uploads/(.*)$',

This works too:

'src_dir' => public_path('uploads'),
'crops_dir' => public_path('uploads/thumbs'),
'path' => 'uploads/(?:thumbs/)?(.*)$',
'url_prefix' => '/uploads/thumbs',

Any clue of what's going on? Thank you, this package saves me lot of work :-)

@nextshrestha
Copy link

no clue till date? any help here would be useful...

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