Skip to content

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.

3 participants