Platinum Partner

Resizing Images Using RMagick


require 'rubygems'
require 'RMagick'

include Magick

def append_filename(filename, suffix)
  extrac = filename.split('.')
  extrac[-2] += suffix
  extrac.join('.')
end                                                                                  
ARGV.each do |f|
  ImageList.new(f).resize(800, 600).write(append_filename(f, '_l'))
  ImageList.new(f).resize(400, 300).write(append_filename(f, '_m'))
  ImageList.new(f).resize(40, 30).write(append_filename(f, '_s'))
end
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}