-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Create padding image filter #11599
Comments
That would be useful, but we cannot re-invent the wheel here, so I suggest:
Which is the same "string API" we use in Process etc. |
That said, I say that the common way today is to use a pretty background image (with some gradient or something) for your overlay images, which is trivial to make in most photo editors. |
Agreed. The primary use case behind this suggestions is padding an image, which today is Instead of doing |
Renaming this issue; the ability to pad an image is the primary use case. We can revisit image creation at a later date if needed. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Return an image resource that you can use with
images.Text
andimages.Overlay
.#123
,#123f
,#112233
,#112233ff
. If alpha not specified, opaque. Default is white.jpeg
,webp
, etc. Default ispng
.The way to handle this today is with a
1x1.png
in the assets directory that you grab as a resource and then resize.Reference: https://discourse.gohugo.io/t/should-it-be-possible-to-pad-an-an-image-using-0-119-image-processing/46684/4
EDIT: Rethinking this, the specific case referenced above, image padding, would probably be handled better with an image filter.
Where the dimensions use the same syntax as CSS padding (e.g., if you provide one number if affects all sides), and background color is as previously described.
The text was updated successfully, but these errors were encountered: