Module: Pura::Image
- Defined in:
- lib/pura-image.rb,
lib/pura/image/railtie.rb,
lib/pura/image/version.rb,
lib/pura/image/processor.rb,
lib/pura/image/operations.rb
Defined Under Namespace
Modules: Operations
Classes: Processor, Railtie, Wrapper
Constant Summary
collapse
- VERSION =
"0.3.0"
Class Method Summary
collapse
Class Method Details
.convert(input_path, output_path, **options) ⇒ Object
31
32
33
|
# File 'lib/pura-image.rb', line 31
def convert(input_path, output_path, **options)
Processor.convert(input_path, output_path, **options)
end
|
.load(path) ⇒ Object
23
24
25
|
# File 'lib/pura-image.rb', line 23
def load(path)
Processor.load(path)
end
|
.save(image, path, **options) ⇒ Object
27
28
29
|
# File 'lib/pura-image.rb', line 27
def save(image, path, **options)
Processor.save(image, path, **options)
end
|
39
40
41
42
43
|
# File 'lib/pura-image.rb', line 39
def supported_formats
formats = %i[jpeg png bmp gif tiff ico]
formats << :webp if defined?(Pura::Webp)
formats
end
|