Class: Paperclip::GeometryDetector Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/geometry_detector_factory.rb

Overview

Deprecated.

Will be removed in Paperclip 8.0. Use Paperclip::Commands::ImageMagick::GeometryParser instead.

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ GeometryDetector

Deprecated.

Will be removed in Paperclip 8.0. Use Paperclip::Commands::ImageMagick::GeometryParser instead.

Returns a new instance of GeometryDetector.



7
8
9
10
11
# File 'lib/paperclip/geometry_detector_factory.rb', line 7

def initialize(file)
  warn_deprecation
  @file = file
  raise Errors::NotIdentifiedByImageMagickError.new("Cannot find the geometry of a file with a blank name") if @file.blank?
end

Instance Method Details

#makeObject

Deprecated.

Will be removed in Paperclip 8.0. Use Paperclip::Commands::ImageMagick::GeometryParser instead.



14
15
16
17
# File 'lib/paperclip/geometry_detector_factory.rb', line 14

def make
  warn_deprecation
  Paperclip::Commands::ImageMagick::GeometryParser.from_file(@file)
end