Class: Rabbit::ImageManipulable::GIMP
- Includes:
- SystemRunner
- Defined in:
- lib/rabbit/image/gimp.rb
Constant Summary collapse
- GIMP_COMMANDS =
%w(gimp)
- HEADER =
"gimp xcf file"
- HEADER_SIZE =
HEADER.size
Constants included from ModuleLoader
Instance Attribute Summary
Attributes inherited from Base
#animation, #filename, #original_height, #original_width, #properties
Class Method Summary collapse
Methods included from SystemRunner
Methods inherited from Base
#[], #[]=, delegate, #draw, #height, #initialize, #keep_ratio=, #keep_ratio?, #pixbuf, #relative_clip_height, #relative_clip_width, #relative_clip_x, #relative_clip_y, #resize, #width
Methods included from ModuleLoader
extend_object, #find_loader, #loaders, #push_loader, #unshift_loader
Constructor Details
This class inherits a constructor from Rabbit::ImageManipulable::Base
Class Method Details
.match?(filename) ⇒ Boolean
17 18 19 20 21 |
# File 'lib/rabbit/image/gimp.rb', line 17 def match?(filename) File.open(filename, "rb") do |f| HEADER == f.read(HEADER_SIZE) end end |