Still.Preprocessor.Image (Still v0.4.0) View Source
Handles image transformation.
To configure it, set :image_opts in the metadata:
%{
image_opts: %{
sizes: [100, 200],
transformations: [color_filter: "grayscale_bt709"]
}
}:sizes defines the widths of the output files to create.
:transformations defines the function name and arguments to call on the
adapter. By default, the adapter is Still.Preprocessor.Image.Mogrify.
However you can also include your own or make use of
Still.Preprocessor.Image.Imageflow by adding :still_imageflow as a
dependency and setting in your config:
config :still, :image_adapter, Still.Preprocessor.Image.Imageflow
For more information see Mogrify's options or ImageMagick's docs information.
When :image_opts is not set, it copies the input file to the output
file as it is.
Link to this section Summary
Functions
Returns the extension for the current file.
Sets the extension for the current file and calls the render/1 function.
Link to this section Functions
Specs
extension(Still.SourceFile.t()) :: String.t()
Returns the extension for the current file.
This function can be overridden.
Specs
run(Still.SourceFile.t()) :: Still.SourceFile.t()
Sets the extension for the current file and calls the render/1 function.