Displaying 1 result from an estimated 1 matches for "piccontrol".
Did you mean:
ccontrol
2008 Apr 10
3
New to ruby, Need help
I''m attempting to make a simple program, just combine two images and
output a .jpg file. Here''s what I have:
class PicController < ApplicationController
require ''RMagick''
def index
im1 = Magick::Image.read(''1.jpg'') {self.size = "81x81"}.first
im2 = Magick::Image.read(''2-1.jpg'').first
result = im1.composite(im2, 0, 55, Magick::CenterGravity)
result.write(...