Copyright © 2009 Marc Worrell Date: 2009-03-02
Authors: Marc Worrell (marc@worrell.nl).
calc_size/7 | Calculate the size of the resulting image, depends on the crop and the original image size. |
can_generate_preview/1 | Check if we can generate a preview image of the given mime type. |
cmd_args/3 | Map filters to commandline options. |
convert/4 | Convert the Infile to an outfile with a still image using the filters. |
out_mime/2 | Return the preferred mime type of the image generated by resizing an image of a certain type and size. |
size/3 | Calculate the size of the resulting image. |
string2filter/2 | Map the list of known filters and known args to atoms. |
calc_size(Width, Height, ImageWidth, ImageHeight, CropPar, Orientation, IsUpscale) -> any()
Calculate the size of the resulting image, depends on the crop and the original image size
can_generate_preview(B::Mime) -> true | false
Check if we can generate a preview image of the given mime type
cmd_args(FileProps, Filters, OutMime) -> any()
Map filters to commandline options
convert(InFile, OutFile, Filters, Context) -> ok | {error, Reason}
Convert the Infile to an outfile with a still image using the filters.
out_mime(Mime, Options) -> {Mime, Extension}
Return the preferred mime type of the image generated by resizing an image of a certain type and size.
size(Props::MediaRef, Filters, Context) -> {size, Width, Height, ResizedMime} | {error, Reason}
Calculate the size of the resulting image.
string2filter(X1::Filter, Where::Arg) -> FilterTuple
Map the list of known filters and known args to atoms. Used when mapping preview urls back to filter args.
Generated by EDoc, Feb 25 2011, 21:14:41.