Class: Kreuzberg::ImageOutputFormatNative
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::ImageOutputFormatNative
- Extended by:
- T::Sig
- Includes:
- ImageOutputFormat
- Defined in:
- lib/kreuzberg/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
- #heif? ⇒ Boolean
- #jpeg? ⇒ Boolean
- #native? ⇒ Boolean
- #png? ⇒ Boolean
- #svg? ⇒ Boolean
- #webp? ⇒ Boolean
Class Method Details
.from_hash(hash) ⇒ Object
73 74 75 |
# File 'lib/kreuzberg/native.rb', line 73 def self.from_hash(hash) new end |
Instance Method Details
#heif? ⇒ Boolean
67 |
# File 'lib/kreuzberg/native.rb', line 67 def heif? = false |
#jpeg? ⇒ Boolean
63 |
# File 'lib/kreuzberg/native.rb', line 63 def jpeg? = false |
#native? ⇒ Boolean
59 |
# File 'lib/kreuzberg/native.rb', line 59 def native? = true |
#png? ⇒ Boolean
61 |
# File 'lib/kreuzberg/native.rb', line 61 def png? = false |
#svg? ⇒ Boolean
69 70 71 |
# File 'lib/kreuzberg/native.rb', line 69 def svg? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#webp? ⇒ Boolean
65 |
# File 'lib/kreuzberg/native.rb', line 65 def webp? = false |