struct Protocol::HeadlessExperimental::ScreenshotParams

Overview

Encoding options for a screenshot.

Included Modules

Defined in:

protocol/headless_experimental.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def format : String | Nil #

Image compression format (defaults to png).


[View source]
def optimize_for_speed : Bool | Nil #

Optimize image encoding for speed, not for resulting size (defaults to false)


[View source]
def quality : Int::Primitive | Nil #

Compression quality from range [0..100] (jpeg only).


[View source]