Replies: 1 comment
-
I just noticed that this does not work. After I somehow implemented trimming, I would have to regenerate the existing conversions with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This package is using https://github.com/spatie/image which is using https://github.com/thephpleague/glide which is using https://github.com/intervention/image which is providing several image manipulation methods, one being
trim()
. The set of available methods in laravel-medialibrary, however, seems to ultimately be limited by thephpleague/glide, and that package does not havetrim()
.I need
trim()
and expected to be able to add it as a custom manipulation but, digging through the code, it does not seem to be possible to add custom manipulations.If my assumption is true, how do I best work around that?
Ideas:
I am using
addMediaFromUrl
, so I do not have the image file beforehand, so I would best listen to the eventMediaHasBeenAdded
and execute my code then, right?Beta Was this translation helpful? Give feedback.
All reactions