mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-06-18 17:43:40 +02:00
Use magenta as a transparency key for trim
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Change
|
||||
- Use magenta (ff00ff) as a transparency key in `trim`.
|
||||
|
||||
## [2.16.3] - 2021-04-05
|
||||
### Fix
|
||||
|
||||
@@ -207,7 +207,9 @@ Removes surrounding background.
|
||||
|
||||
**⚠️Warning:** Trimming requires an image to be fully loaded into memory. This disables scale-on-load and significantly increases memory usage and processing time. Use it carefully with large images.
|
||||
|
||||
**📝Note:** If you know background color of your images then setting it explicitly via `color` will also save some resources because libvips won't detect it automatically.
|
||||
**📝Note:** If you know background color of your images then setting it explicitly via `color` will also save some resources because imgproxy won't detect it automatically.
|
||||
|
||||
**📝Note:** Use `color` value of `FF00FF` for trimming transparent background as imgproxy uses magenta as a transparency key.
|
||||
|
||||
**📝Note:** Trimming of animated images is not supported.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user