-
Notifications
You must be signed in to change notification settings - Fork 729
Can I add a watermark ? #480
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
Comments
where i get that file i need location |
The code from the wiki was in |
Hello I need that solution as soon as possible. |
@g0110280 |
Hi @Hredoy. You can add a watermark using a combination of the ImageWasUploaded Event and the Image facade provided by intervention image. If you are not familiar with Laravel events I recommend you check out the docs or this video first. First you need to create an event listener within your app that listens to the ImageWasUploaded event. Check out this page in the documentation for more info. Or refer to the demo project that provides usage examples here. Next you need to add the watermark. You need to do this from within the event listener you just created. This filemanager uses the Intervention Image package. On this page you'll find an example on how to add a watermark. Applying everything your event listener code should look something like the example below. I didn't test this but it will help you on your way.
|
how can i get current image width which is for in upload query |
@gwleuverink Thanks for your solution! I have added that to wiki. |
hi
|
I want to add watermark after uploading any image
The text was updated successfully, but these errors were encountered: