-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding watermark for different size images error #5
Comments
Hey Can you explain a little more I mean are you defining size |
Yes const storage = SharpMulter({ imageOptions: { |
I'm loooking into it Let me clear this one up with this config you are uploading two sizes 600X600 that's uploads successfully but 1000X800 fails to upload correct ? |
|
Error while water image greater than upload image it gives me this error |
This is a limitation of sharp itself you can't put a bigger image on top of a smaller image as a watermark. |
Best thing we can do is check if watermark is bigger than uploading image resize before putting it on as a watermark |
Can water image resize according to upload image because we cant tell which image they can add |
How can we do that |
For now just resize you image manually I'll add this functionality in the package itself in couple days |
Thank you so much for your replies. I will be waiting for update. |
Thank you for using it and making it better. |
Error: Image to composite must have same dimensions or smaller
when this error appear image not saving
If i add watermark image with lesser px size than uploading image px size it will upload correct and add watermark or image size px size les than watermark px size i get this error
ex:
Please help
The text was updated successfully, but these errors were encountered: