Class: Xberg::ImageOutputFormatPng

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
ImageOutputFormat
Defined in:
lib/xberg/native.rb

Overview

Re-encode all extracted images as PNG (lossless).

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



132
133
134
# File 'lib/xberg/native.rb', line 132

def self.from_hash(hash)
  new
end

Instance Method Details

#heif?Boolean

Returns:

  • (Boolean)


126
# File 'lib/xberg/native.rb', line 126

def heif? = false

#jpeg?Boolean

Returns:

  • (Boolean)


122
# File 'lib/xberg/native.rb', line 122

def jpeg? = false

#native?Boolean

Returns:

  • (Boolean)


118
# File 'lib/xberg/native.rb', line 118

def native? = false

#png?Boolean

Returns:

  • (Boolean)


120
# File 'lib/xberg/native.rb', line 120

def png? = true

#svg?Boolean

Returns:

  • (Boolean)


128
129
130
# File 'lib/xberg/native.rb', line 128

def svg? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#webp?Boolean

Returns:

  • (Boolean)


124
# File 'lib/xberg/native.rb', line 124

def webp? = false