Skip to content
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

Ignore OutOfBoundsException error when watermark grower of source image #16612

Closed
NabiKAZ opened this issue Aug 5, 2018 · 1 comment
Closed

Comments

@NabiKAZ
Copy link
Contributor

NabiKAZ commented Aug 5, 2018

When use this command:

Image::watermark('image.jpg', 'watermark.jpg')->save('image.jpg');

If dimension of watermark, grower of source image, return this error:

Exception 'Imagine\Exception\OutOfBoundsException' with message 'Cannot paste image of the given size at the specified position, as it moves outside of the current image's box' 

It's fine. But how can ignore this error, so new image will be create but the part of watermark that outside of the image box is hidden and removed.

@NabiKAZ NabiKAZ changed the title ignore OutOfBoundsException error Ignore OutOfBoundsException error when watermark grower of source image Aug 5, 2018
@yii-bot
Copy link

yii-bot commented Aug 6, 2018

Issue moved to yiisoft/yii2-imagine#51

@yii-bot yii-bot closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants