mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-23 19:05:22 +02:00
add documentation for the trim option in image processing
This commit is contained in:
parent
3ff7fa8b64
commit
a54d7831fa
1 changed files with 7 additions and 0 deletions
7
data.go
7
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue