Class: Imagekitio::Models::SubtitleOverlayTransformation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/subtitle_overlay_transformation.rb

Defined Under Namespace

Modules: Typography

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(background: nil, color: nil, font_family: nil, font_outline: nil, font_shadow: nil, font_size: nil, typography: nil) ⇒ Object

Some parameter documentations has been truncated, see Imagekitio::Models::SubtitleOverlayTransformation for more details.

Subtitle styling options. [Learn more](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer) from the docs.

Parameters:

  • background (String) (defaults to: nil)

    Specifies the subtitle background color using a standard color name, an RGB colo

  • color (String) (defaults to: nil)

    Sets the font color of the subtitle text using a standard color name, an RGB col

  • font_family (String) (defaults to: nil)

    Font family for subtitles. Refer to the [supported fonts](imagekit.io/do

  • font_outline (String) (defaults to: nil)

    Sets the font outline of the subtitle text.

  • font_shadow (String) (defaults to: nil)

    Sets the font shadow for the subtitle text.

  • font_size (Float) (defaults to: nil)

    Sets the font size of subtitle text.

  • typography (Symbol, Imagekitio::Models::SubtitleOverlayTransformation::Typography) (defaults to: nil)

    Sets the typography style of the subtitle text. Supports values are ‘b` for bold



# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 73

Instance Attribute Details

#backgroundString?

Specifies the subtitle background color using a standard color name, an RGB color code (e.g., FF0000), or an RGBA color code (e.g., FFAABB50).

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)

Returns:

  • (String, nil)


13
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 13

optional :background, String

#colorString?

Sets the font color of the subtitle text using a standard color name, an RGB color code (e.g., FF0000), or an RGBA color code (e.g., FFAABB50).

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)

Returns:

  • (String, nil)


22
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 22

optional :color, String

#font_familyString?

Font family for subtitles. Refer to the [supported fonts](imagekit.io/docs/add-overlays-on-images#supported-text-font-list).

Returns:

  • (String, nil)


29
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 29

optional :font_family, String, api_name: :fontFamily

#font_outlineString?

Sets the font outline of the subtitle text. Requires the outline width (an integer) and the outline color (as an RGB color code, RGBA color code, or standard web color name) separated by an underscore. Example: ‘fol-2_blue` (outline width of 2px and outline color blue), `fol-2_A1CCDD` (outline width of 2px and outline color `#A1CCDD`) and `fol-2_A1CCDD50` (outline width of 2px and outline color `#A1CCDD` at 50% opacity).

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)

Returns:

  • (String, nil)


42
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 42

optional :font_outline, String, api_name: :fontOutline

#font_shadowString?

Sets the font shadow for the subtitle text. Requires the shadow color (as an RGB color code, RGBA color code, or standard web color name) and shadow indent (an integer) separated by an underscore. Example: ‘fsh-blue_2` (shadow color blue, indent of 2px), `fsh-A1CCDD_3` (shadow color `#A1CCDD`, indent of 3px), `fsh-A1CCDD50_3` (shadow color `#A1CCDD` at 50% opacity, indent of 3px).

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)

Returns:

  • (String, nil)


54
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 54

optional :font_shadow, String, api_name: :fontShadow

#font_sizeFloat?

Sets the font size of subtitle text.

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)

Returns:

  • (Float, nil)


62
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 62

optional :font_size, Float, api_name: :fontSize

#typographySymbol, ...

Sets the typography style of the subtitle text. Supports values are ‘b` for bold, `i` for italics, and `b_i` for bold with italics.

[Subtitle styling options](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)



71
# File 'lib/imagekitio/models/subtitle_overlay_transformation.rb', line 71

optional :typography, enum: -> { Imagekitio::SubtitleOverlayTransformation::Typography }