Types¶
-
imgproxykit.types.Argument =
Argument¶ Scalar value accepted in an option’s positional arguments.
Values in
arguments. Booleans become1or0.Noneleaves an empty argument position; trailingNonevalues are omitted by the default serializer.
-
imgproxykit.types.FormatType =
FormatType¶ Image format identifiers accepted by imgproxykit.
Formats for
Format,FormatQuality, and theformatkeyword ofTransform. For example, usejpgfor JPEG andjxlfor JPEG XL.An identifier in this type does not guarantee output support on your server. Supported input and output formats depend on the imgproxy build; SVG output has additional restrictions.
See imgproxy format and the image formats support matrix.
-
imgproxykit.types.OptionType =
OptionType¶ Processing option names represented by imgproxykit’s built-in options.
Names in
nameidentify URL segments. These are protocol names; scalar keywords inTransformreplace hyphens with underscores. For example,min-widthcorresponds tomin_width.This type describes the library’s supported names, rather than every option available in every imgproxy version or edition.
-
imgproxykit.types.Position =
Position¶ Gravity codes for
GravityandCrop.See imgproxy gravity.
-
imgproxykit.types.ResizeType =
ResizeType¶ Resizing modes for
ResizeandResizingType.
-
imgproxykit.types.WatermarkPosition =
WatermarkPosition¶ Placement codes for
Watermark.See imgproxy watermark.