ImageOptions

ImageOptions data structure inherits RenderOptions and used as part of ViewOptions data structure.

ImageOptions example

{
	"Width": 0,
	"Height": 0,
	"ExtractText": false,
	"JpegQuality": 0,
}

ImageOptions fields

NameDescription
RenderOptions fieldsImageOptions inherits all properties of RenderOptions
WidthAllows to specify output image width. Specify image width in case when you want to change output image dimensions. When Width has value and Height value is 0 then Height value will be calculated to save image proportions.
HeightAllows to specify output image height. Specify image height in case when you want to change output image dimensions. When Height has value and Width value is 0 then Width value will be calculated to save image proportions.
ExtractTextWhen enabled Viewer will extract text when it’s possible (e.g. raster formats don’t have text layer) and return it in the viewing result. This option might be useful when you want to add selectable text layer over the image.
JpegQualityAllows to specify quality when rendering as JPG. Valid values are between 1 and 100. Default value is 90.