[Ruby] ImageScience and rotation

Dave Myron dave.myron at contentfree.com
Tue Apr 17 20:02:59 PDT 2007


Unfortunately, I'm currently in NYC. Evan is at the meeting tonight  
tho and he's a champ at C and knows inline quite well.

======================================

Well, I didn't make it to the meeting tonight, but I did get started.

Because of the differences between the jpg transforms and "classic" rotation
in FreeImage, I'm actually making two methods: 
  
  An instance method 'rotate' that operates on open files like the other
methods such as #resize, etc, 
  
  And a singleton method 'rotate_jpg' that specifically uses FreeImage's JPG
transforms. I wish I could combine them into a single method, but the
transform routines don't use a loaded file - it just takes an input
filename, an output filename and I'm giving it one of the operations
(rotate_90 or rotate_270) depending on the given direction.

Evan, if you're out there and have a minute to lend a hand, hit me up with
an email and I can pastie you the two methods as I have them now.

Later,
Dave



More information about the Ruby mailing list