Class: Gotenberg::Analyzers::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/gotenberg/analyzers/image.rb

Constant Summary collapse

MIME_TYPES =
{
  'bmp' => 'image/bmp',
  'gif' => 'image/gif',
  'jpe' => 'image/jpeg',
  'jpeg' => 'image/jpeg',
  'jpg' => 'image/jpeg',
  'jfif' => 'image/pipeg',
  'svg' => 'image/svg+xml',
  'tif' => 'image/tiff',
  'tiff' => 'image/tiff',
  'ico' => 'image/x-icon'
}.freeze

Constants inherited from Base

Base::URI_REGEXP

Instance Attribute Summary

Attributes inherited from Base

#resource

Instance Method Summary collapse

Methods inherited from Base

#assets, #initialize

Constructor Details

This class inherits a constructor from Gotenberg::Analyzers::Base

Instance Method Details

#tagObject



21
22
23
# File 'lib/gotenberg/analyzers/image.rb', line 21

def tag
  '<img src="%s" alt="%s" />' % [src_value, filename]
end