摘要:
I go on a lot of Bulletin Board, every has its own limits of size for the avatars, instead of the resize manually I created a script which does it for me with RMagick #!/usr/bin/ruby
require "RMagic... 阅读全文
posted @ 2007-12-07 17:32
evilyzou
阅读(121)
评论(0)
推荐(0)
摘要:
This is a small ruby file I wrote to process the TCX file that I can download from MotionBased website that is processed from the data off my Garmin Forerunner 305. It processes the XML file and gene... 阅读全文
posted @ 2007-12-07 17:32
evilyzou
阅读(215)
评论(0)
推荐(0)
摘要:
require 'RMagick'
maxwidth = 120
maxheight = 160
aspectratio = maxwidth.to_f / maxheight.to_f
imgfile = 'world'
pic = Magick::Image.read(imgfile + '.jpg').first
imgwidth = pic.columns
imgheight = pi... 阅读全文
posted @ 2007-12-07 17:32
evilyzou
阅读(145)
评论(0)
推荐(0)