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



2736
2737
2738
# File 'lib/xberg/native.rb', line 2736

def self.from_hash(hash)
  new
end

Instance Method Details

#heif?Boolean

Returns:

  • (Boolean)


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

def heif? = false

#jpeg?Boolean

Returns:

  • (Boolean)


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

def jpeg? = false

#native?Boolean

Returns:

  • (Boolean)


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

def native? = true

#png?Boolean

Returns:

  • (Boolean)


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

def png? = false

#svg?Boolean

Returns:

  • (Boolean)


2732
2733
2734
# File 'lib/xberg/native.rb', line 2732

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

#webp?Boolean

Returns:

  • (Boolean)


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

def webp? = false