Class: ImgToScript::MK90ClientAPI::ImageProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/img_to_script/mk90_client_api/image_processor.rb

Overview

Resizes the image and converts to binary.

Instance Method Summary collapse

Instance Method Details

#call(image:, **kwargs) ⇒ Magick::BinMagick::Image

Call image processor.

Parameters:

  • image (Magick::BinMagick::Image)
  • kwargs (Hash{ Symbol => Object })

Returns:

  • (Magick::BinMagick::Image)

    @image



17
18
19
20
21
22
23
24
# File 'lib/img_to_script/mk90_client_api/image_processor.rb', line 17

def call(image:, **kwargs)
  _call(
    image: image,
    scr_width: ImgToScript::Languages::MK90Basic::SCR_WIDTH,
    scr_height: ImgToScript::Languages::MK90Basic::SCR_HEIGHT,
    **kwargs
  )
end