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

handles thumbnail usage in views to replicate sharp 8 #563

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

PatrickePatate
Copy link
Contributor

In Sharp 8, you could use thumbnail() without parameters in blade templates and sharp would render it as a string (thumbnail url).

Now with Sharp 9, thumbnail() is fluent and can be chained with other methods (like addModifier()).
When using ->thumbnail() without parameters, sharp now returns a Thumbnail model.

This PR tend to replicate previous comportment with fluent Thumbnails, by implementing a __toString() Method in Thumbnail model that executes ->make().

@aguingand aguingand merged commit 83c900c into 9.0 Jan 7, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants