> Hi, is there any Ruby code snippets I can use to transform my photo to lower
> resolution, uniform size but maintaining aspect ration, etc ...?

The documentation of RMagick has a lot of examples.

http://rmagick.rubyforge.org/