From a54d7831fac0e58b41e08898be904a19b7e41aa5 Mon Sep 17 00:00:00 2001 From: Vetle Leinonen-Roeim Date: Fri, 28 Mar 2025 11:26:27 +0100 Subject: [PATCH] add documentation for the trim option in image processing --- data.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data.go b/data.go index 7f4ffe7..54f58a6 100644 --- a/data.go +++ b/data.go @@ -226,6 +226,13 @@ func (o Options) transform() bool { // See https://github.com/willnorris/imageproxy/blob/master/docs/url-signing.md // for examples of generating signatures. // +// # Trim +// +// The "trim" option will automatically trim pixels of the same color around +// the edges of the image. This is useful for removing borders from images +// that have been resized or cropped. The trim option is applied after any +// cropping or resizing has been performed. +// // Examples // // 0x0 - no resizing