mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
godoc: fix godoc formatting
This commit is contained in:
parent
a1ea6d81a7
commit
e4a58965b2
1 changed files with 27 additions and 27 deletions
14
data.go
14
data.go
|
@ -139,7 +139,7 @@ func (o Options) transform() bool {
|
||||||
// The options can be specified in in order, with duplicate options overwriting
|
// The options can be specified in in order, with duplicate options overwriting
|
||||||
// previous values.
|
// previous values.
|
||||||
//
|
//
|
||||||
// Rectangle Crop
|
// # Rectangle Crop
|
||||||
//
|
//
|
||||||
// There are four options controlling rectangle crop:
|
// There are four options controlling rectangle crop:
|
||||||
//
|
//
|
||||||
|
@ -157,13 +157,13 @@ func (o Options) transform() bool {
|
||||||
// crop width or height will be adjusted, preserving the specified cx and cy
|
// crop width or height will be adjusted, preserving the specified cx and cy
|
||||||
// values. Rectangular crop is applied before any other transformations.
|
// values. Rectangular crop is applied before any other transformations.
|
||||||
//
|
//
|
||||||
// Smart Crop
|
// # Smart Crop
|
||||||
//
|
//
|
||||||
// The "sc" option will perform a content-aware smart crop to fit the
|
// The "sc" option will perform a content-aware smart crop to fit the
|
||||||
// requested image width and height dimensions (see Size and Cropping below).
|
// requested image width and height dimensions (see Size and Cropping below).
|
||||||
// The smart crop option will override any requested rectangular crop.
|
// The smart crop option will override any requested rectangular crop.
|
||||||
//
|
//
|
||||||
// Size and Cropping
|
// # Size and Cropping
|
||||||
//
|
//
|
||||||
// The size option takes the general form "{width}x{height}", where width and
|
// The size option takes the general form "{width}x{height}", where width and
|
||||||
// height are numbers. Integer values greater than 1 are interpreted as exact
|
// height are numbers. Integer values greater than 1 are interpreted as exact
|
||||||
|
@ -192,7 +192,7 @@ func (o Options) transform() bool {
|
||||||
// option with only one of either width or height does the same thing as if
|
// option with only one of either width or height does the same thing as if
|
||||||
// "fit" had not been specified.
|
// "fit" had not been specified.
|
||||||
//
|
//
|
||||||
// Rotation and Flips
|
// # Rotation and Flips
|
||||||
//
|
//
|
||||||
// The "r{degrees}" option will rotate the image the specified number of
|
// The "r{degrees}" option will rotate the image the specified number of
|
||||||
// degrees, counter-clockwise. Valid degrees values are 90, 180, and 270.
|
// degrees, counter-clockwise. Valid degrees values are 90, 180, and 270.
|
||||||
|
@ -200,17 +200,17 @@ func (o Options) transform() bool {
|
||||||
// The "fv" option will flip the image vertically. The "fh" option will flip
|
// The "fv" option will flip the image vertically. The "fh" option will flip
|
||||||
// the image horizontally. Images are flipped after being rotated.
|
// the image horizontally. Images are flipped after being rotated.
|
||||||
//
|
//
|
||||||
// Quality
|
// # Quality
|
||||||
//
|
//
|
||||||
// The "q{qualityPercentage}" option can be used to specify the quality of the
|
// The "q{qualityPercentage}" option can be used to specify the quality of the
|
||||||
// output file (JPEG only). If not specified, the default value of "95" is used.
|
// output file (JPEG only). If not specified, the default value of "95" is used.
|
||||||
//
|
//
|
||||||
// Format
|
// # Format
|
||||||
//
|
//
|
||||||
// The "jpeg", "png", and "tiff" options can be used to specify the desired
|
// The "jpeg", "png", and "tiff" options can be used to specify the desired
|
||||||
// image format of the proxied image.
|
// image format of the proxied image.
|
||||||
//
|
//
|
||||||
// Signature
|
// # Signature
|
||||||
//
|
//
|
||||||
// The "s{signature}" option specifies an optional base64 encoded HMAC used to
|
// The "s{signature}" option specifies an optional base64 encoded HMAC used to
|
||||||
// sign the remote URL in the request. The HMAC key used to verify signatures is
|
// sign the remote URL in the request. The HMAC key used to verify signatures is
|
||||||
|
|
Loading…
Reference in a new issue