Class: Xberg::ImageOutputFormatNative

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

Overview

Preserve whatever format the extractor produced (default).

No re-encode pass is performed. ExtractedImage.format reflects the source format: JPEG for embedded PDF images, PNG for rasterised content, or the native container format from office documents.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



81
82
83
# File 'lib/xberg/native.rb', line 81

def self.from_hash(hash)
  new
end

Instance Method Details

#heif?Boolean

Returns:

  • (Boolean)


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

def heif? = false

#jpeg?Boolean

Returns:

  • (Boolean)


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

def jpeg? = false

#native?Boolean

Returns:

  • (Boolean)


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

def native? = true

#png?Boolean

Returns:

  • (Boolean)


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

def png? = false

#svg?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/xberg/native.rb', line 77

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

#webp?Boolean

Returns:

  • (Boolean)


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

def webp? = false