Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: add max-width * Update GlideImageGenerator.php --------- Co-authored-by: Ralph J. Smit <[email protected]>
- Loading branch information
114710c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make
max-width
optional?114710c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@poldixd Yes, but what would be your use case?
114710c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use your package for a background image. On some very wide screens, the background image is reduced to the maximum width of the image.
At the moment I use
filter()
to remove the style tag.114710c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, that makes sense, thanks! Just released 1.2.3 that adds a new parameter
grow
that you can use to enable images to grow past their full size by settinggrow: true
. Hope that helps!