Documentation ¶
Overview ¶
Package aeimagesflags lets you use the undocumented flags of the App Engine Images service URLs to serve transformed images.
Most of the flags are extracted from the answer to this question:
http://stackoverflow.com/questions/25148567/list-of-all-the-app-engine-images-service-get-serving-url-uri-options
As mentioned there these flags are not documented; Google could remove most of them without notice at any time.
Index ¶
Constants ¶
View Source
const ( Rotate90 = rotation(90) Rotate180 = rotation(180) Rotate270 = rotation(270) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flags ¶
type Flags struct { // Size of the largest dimension Size uint64 // Serve the original image Original bool Width uint64 Height uint64 // Smart square crop that attempts cropping to faces SmartSquareCropFaces bool // Alternative smart square crop SmartSquareCrop bool CircularCrop bool SquareCrop bool // Like square crop but it's sometimes above the image half, like ~33% of the // vertical height or so. TranslatedSquareCrop bool // Crop to the smallest of: Width, Height or Size SmallestCrop bool // Flip the image on its axis VerticalFlip, HorizontalFlip bool Rotate rotation // Force specific image formats. // Forcing PNG, WebP and GIF outputs can work in combination with circular // crops for a transparant background. Forcing JPG can be combined with border // color to fill in backgrounds in transparent images. ForceJPEG, ForcePNG bool ForceWebP, ForceGIF bool // Generate MP4 from input animated GIF MP4 bool // Remove any animation of the GIF file KillAnimation bool // Width of the border, in pixels Border uint64 // Color of the border, black by default (transparent defaults to 255) BorderColor color.RGBA // Add header to force browser download of the image ForceDownload bool // Set Cache-Control max-age directive to these number of days ExpiresDays uint64 // Change the quality of the JPEG output JPEGQuality uint64 // Intensity of the blur (max 100) Blur uint64 // Size of the border gradient BorderGradientSize uint64 // Color of the border gradient BorderGradientColor color.RGBA }
Click to show internal directories.
Click to hide internal directories.