JPG / PNG formatOptions.
formatOptions
ColorMode.
ColorMode
PNG only, 0..9.
PNG only.
PixelHeight; null keeps the document's native height.
PixelHeight
null
PixelWidth; null keeps the document's native width.
PixelWidth
JPG only, 1..100.