Colors
Returns a slice of an image's most dominant colors, ordered from most to least dominant, using a simple histogram method.
Content
Returns the content of the given resource.
Crop
Returns a new image resource cropped according to the given processing specification.
Data
Returns supplemental information about resources produced by the resources.GetRemote, css.Build, and js.Build functions.
Err
Returns an error message if the HTTP request for a remote resource fails, else nil.
Exif
Returns an object containing Exif metadata for supported image formats.
Fill
Returns a new image resource cropped and resized according to the given processing specification.
Filter
Returns a new image resource with one or more image filters applied.
Fit
Returns a new image resource downscaled to fit according to the given processing specification.
Height
Returns the height of the given image resource.
MediaType
Returns a media type object for the given resource.
Meta
Returns an image's Exif, IPTC, and XMP metadata, if the format supports it.
Name
Returns the name of the given resource as optionally defined in front matter, falling back to its file path.
Params
Returns a map of resource parameters as defined in front matter.
Permalink
Returns the permalink of the given resource, publishing it in the process.
Process
Returns a new image resource processed according to the given processing specification.
Publish
Publishes the given resource.
RelPermalink
Returns the relative permalink of the given resource, publishing it in the process.
Resize
Returns a new image resource resized according to the given processing specification.
ResourceType
Returns the main type of the given resource's media type.
Title
Returns the title of the given resource as optionally defined in front matter, falling back to a relative path or hashed file name depending on resource type.
Width
Returns the width of the given image resource.
