Bjørn Erik Pedersen
216a69a1ef
Shorten processed image filenames
...
Fixes #12688
Fixes #12656
2024-07-31 16:44:06 +02:00
Bjørn Erik Pedersen
e67886c038
Consolidate all hashing to the common/hashing package
...
And remove now unsued hashing funcs.
2024-07-31 16:44:06 +02:00
Bjørn Erik Pedersen
f9b3c0f486
Add images.Opacity filter
...
Fixes #11471
2023-09-22 15:03:16 +02:00
Bjørn Erik Pedersen
3a9cb7b0fb
resources/images: Fix 2 animated GIF resize issues
...
* Fix resize of animated GIF when target != GIF
* Avoid processing all GIF frames if targetFormat != GIF
Fixes #10354
2022-10-04 15:38:12 +02:00
Bjørn Erik Pedersen
cf12fa6161
Add animated GIF support
...
Note that this is for GIFs only (and not Webp).
Fixes #5030
2022-06-12 18:17:08 +02:00
Bjørn Erik Pedersen
2e1c81770a
resources: Add a Gif source file to golden tests
2022-06-12 16:29:19 +02:00
Bjørn Erik Pedersen
e71d715b9b
Add custom font support to images.Text
...
Fixes #9253
2021-12-07 16:53:02 +01:00
Bjørn Erik Pedersen
e61cdf335f
images: Fix cache busting of image text filter
...
See #9238
2021-12-07 16:53:02 +01:00
Paul van Brouwershaven
283394a4fd
images: Text filter that draws text with the given options ( #9239 )
...
Fixes #9238
2021-12-07 11:29:55 +01:00
Bjørn Erik Pedersen
30eea3915b
resources: Regenerate image golden testdata
...
Keep this as a separate commit as this isn't because the files have changed. The filenames have changed due to cache busting of PNG and Webp images.
See #8729
2021-07-07 17:25:14 +02:00
Bjørn Erik Pedersen
8f40f34cd1
Fix transparency problem when converting 32-bit images to WebP
...
Fixes #8729
2021-07-07 17:25:14 +02:00
Bjørn Erik Pedersen
3ba147e702
images: Add images.Overlay filter
...
This allows for constructs ala:
```
{{ $overlay := $img.Filter (images.Overlay $logo 50 50 )}}
```
Or:
```
{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
{{ $overlay := $img | images.Filter $logoFilter }}
```
Which will overlay the logo in the top left corner (x=50, y=50) of `$img`.
Fixes #8057
Fixes #4595
Updates #6731
2020-12-17 09:14:18 +01:00
Bjørn Erik Pedersen
4b286b9d27
resources/images: Allow to set background fill colour
...
Closes #6298
2019-10-20 22:06:58 +02:00
Bjørn Erik Pedersen
823f53c861
Add a set of image filters
...
With this you can do variants of this:
```
{{ $img := resources.Get "images/misc/3-jenny.jpg" }}
{{ $img := $img.Resize "300x" }}
{{ $g1 := $img.Filter images.Grayscale }}
{{ $g2 := $img | images.Filter (images.Saturate 30) (images.GaussianBlur 3) }}
```
Fixes #6255
2019-08-28 15:59:54 +02:00