#[repr(u8)]pub enum Optflag {
Show 33 variants
OutFile = 111,
UseSevenBitMode = 55,
UseEightBitMode = 56,
HasGRIArgLimit = 82,
NumColors = 112,
Mapfile = 109,
Monochrome = 101,
Insecure = 107,
InvertBackground = 105,
UseHighColor = 73,
UseMacro = 117,
MacroNumber = 110,
ComplexionScore = 67,
IgnoreGIFDelay = 103,
StaticGIF = 83,
Diffusion = 100,
FindLargest = 102,
SelectColor = 115,
CropRegion = 99,
Width = 119,
Height = 104,
Resampling = 114,
QualityMode = 113,
LoopMode = 108,
PaletteType = 116,
BuiltinPalette = 98,
EncodingPolicy = 69,
BackgroundColor = 66,
PenetrateScreen = 80,
PipeInput = 68,
Verbose = 118,
Version = 86,
Help = 72,
}Expand description
Flags used in the easy encoder API.
Flags are the same as the ones used in the img2sixel executable
Variants§
OutFile = 111
Specify output file name
UseSevenBitMode = 55
Use sixel images for 7 bit terminals or printers
Default of the 2 bit mode flags
UseEightBitMode = 56
Use sixel images for 8 bit terminals or printers
HasGRIArgLimit = 82
Limit the arguments of DECGRI(‘!’) to 255
NumColors = 112
Specify the number of colors to reduce the image to
Defaults to 256
Renamed from “SIXEL_OPTFLAG_COLORS”
Mapfile = 109
Give a file that specifies a set of colors
Transforms the image to match the set
Monochrome = 101
Output a monochrome sixel image
Assumes the terminal background color is black
Insecure = 107
Connect to SSL sites without certs
Only applicable if libcurl is used
InvertBackground = 105
Assume the terminal background color is white
Only applicable when also using Optflag::Monochrome
UseHighColor = 73
Output a 15bpp sixel image
UseMacro = 117
Use DECDMAC and DEVINVM sequences to optimize GIF animation rendering
MacroNumber = 110
Specify a macro register number
ComplexionScore = 67
Specify the number of arguments for the score of complexion correction
Must be 1 or more
IgnoreGIFDelay = 103
Ignore delay when rendering GIF animations
StaticGIF = 83
Render an animated GIF as a static image
Diffusion = 100
Choose a diffusion method to be used with the NumColors option
Should be a DiffusionMethod
DiffusionMethod: enum.DiffusionMethod.html
FindLargest = 102
Choose a method for finding the largest dimension of median cut boxes for splitting
Should be a MethodForLargest
MethodForLargest: enum.MethodForLargest.html
SelectColor = 115
Choose the method for selecting the representative color from each median-cut box.
Only makes sense when the Optflag::NumColors is used
Should be a MethodForRepColor
MethodForRepColor: enum.MethodForRepColor.html
CropRegion = 99
Crop a source image to fit some geometry
String format representation is “%dx%d+%d+%d”, which is width, height, x, y
Width = 119
Resize an image to a specified width
Uses the following syntax:
-
auto -
<number>%scale with a percentage -
<number>scale a number of pixel counts -
<number>pxscale a number of pixel counts
Height = 104
Resize an image to a specified height
Uses the following syntax:
-
auto -
<number>%scale with a percentage -
<number>scale a number of pixel counts -
<number>pxscale a number of pixel counts
Resampling = 114
Choose a filter for resampling when scaling the image due to
Optflag::Width or Optflag::Height
Should be a ResamplingMethod
ResamplingMethod: enum.ResamplingMethod.html
QualityMode = 113
Selects quality of color quanlization
Should be a QualityMode
QualityMode: enum.QualityMode.html
LoopMode = 108
PaletteType = 116
Select a palette color space
Should be a PaletteType
PaletteType: enum.PaletteType.html
BuiltinPalette = 98
Choose a built-in palette type
Should be a BuiltinDither
BuiltinDither: enum.BuiltinDither.html
EncodingPolicy = 69
Choose an encoding policy
Should be a EncodePolicy
EncodePolicy: enum.EncodingPolicy.html
BackgroundColor = 66
Specify a background color
Represented by the following syntax:
#rgb
#rrggbb
#rrrgggbbb
#rrrrggggbbbb
rgb:r/g/b
rgb:rr/gg/bb
rgb:rrr/ggg/bbb
rgb:rrrr/gggg/bbbbPenetrateScreen = 80
Penetrate GNU Screen using DCS pass-through sequence
PipeInput = 68
Read source images from stdin continuously
Verbose = 118
Print debugging info
Version = 86
Print version and license info
Help = 72
Print a help message