Method: ROF::Collection.make_thumb

Defined in:
lib/rof/collection.rb

.make_thumb(src_image) ⇒ Object

make thumbnail



70
71
72
73
74
75
76
77
78
79
# File 'lib/rof/collection.rb', line 70

def self.make_thumb(src_image)
  options = ' -resize 256x256 '

  dest_image = mk_dest_img_name(src_image, '-thumb')
  unless run_convert(src_image, dest_image, options)
    STDERR.print("ROF:Collection.mk_thumb: failed on file  ", src_image, ".\n")
    return nil
  end
  dest_image
end