Still.Preprocessor.Image (Still v0.1.1) View Source
This preprocessor 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. See Imageflow's
docs and
imageflow_ex
or ImageMagick's
docs for more
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
Callback implementation for Still.Preprocessor.extension/1
.
Link to this section Functions
Specs
extension(Still.SourceFile.t()) :: String.t()
Callback implementation for Still.Preprocessor.extension/1
.
Specs
run(Still.SourceFile.t()) :: Still.SourceFile.t()