Class: Gotenberg::Analyzers::Image
- 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
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gotenberg::Analyzers::Base
Instance Method Details
#tag ⇒ Object
21 22 23 |
# File 'lib/gotenberg/analyzers/image.rb', line 21 def tag '<img src="%s" alt="%s" />' % [src_value, filename] end |