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



105
106
107
# File 'lib/xberg/native.rb', line 105

def self.from_hash(hash)
  new
end

Instance Method Details

#heif?Boolean

Returns:

  • (Boolean)


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

def heif? = false

#jpeg?Boolean

Returns:

  • (Boolean)


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

def jpeg? = false

#native?Boolean

Returns:

  • (Boolean)


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

def native? = false

#png?Boolean

Returns:

  • (Boolean)


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

def png? = true

#svg?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/xberg/native.rb', line 101

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

#webp?Boolean

Returns:

  • (Boolean)


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

def webp? = false