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

feat(vips): allow the watermark thumbnail to also upscale the image #398

Closed
wants to merge 4 commits into from

Conversation

jvahldick
Copy link
Contributor

@jvahldick jvahldick commented Oct 3, 2023

This PR refers to: #397

The current behaviour of the watermark filter does not allow the watermark image to upscale. So, when the percentage is set, it does not necessarily refer to the base image because it has a limit (the size of itself). Allowing it to upscale makes more sense for this case. If we want to have a limit, I believe it should be set over the base image and not on the watermark.

@jvahldick
Copy link
Contributor Author

The SizeBoth works when the aspect ratio is specified, and tests pass on my local.
Do you see any problem changing it?

One thing I realised is that we can upscale the image to be bigger than the source, but then the x, y get a bit lost for the way it was built.
Eg: 110% of width and -5p in the x

@cshum
Copy link
Owner

cshum commented May 29, 2024

close per #435

@cshum cshum closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants