Displaying 7 results from an estimated 7 matches for "centergravity".
2008 Feb 04
7
Problems installing Rmagick on Ubuntu
I want to install Rmagick on Ubuntu 7.10, but i am getting this error
when running gem install rmagick:
Can''t install RMagick 2.2.0. You must have ImageMagick 6.3.0 or later.
(I installed imagemagick and libmagick9-dev prior to that)
I installed rmagick through Synaptic, and it says that i have version
7:6.2.4.5.dfsg1-2ubuntu1 installed (by the way, what does the 7
mean?). What should
2006 Mar 08
3
file_column Cropping -> image offset information
...an add |true| as the last argument with any of the three argument
list formats described above.
--------------------------------------------------------------------------
so adding '',true'' in the file magick_file_column.rb at line 76 solved my
problem
img = img.crop(::Magick::CenterGravity, [img.columns, w].min,
[img.rows, h].min,true)
2006 Jul 10
6
Gruff: Display label vertical
Hi,
I have stacked Bar graph which has about 20-30 items. I have to name
each of these items. But there names/labels are overlapping. Is there
any option to make the labels display vertical instead of horizontal?
Any other ideas how can I aviod this overlapping?
Please suggest.
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
0
webrick slows and crashes on thumbnail creation
...r img in ary %>
<%= resize_image img.name %> # img.name= /homa/joe/pictureimg.jpg
<% end %>
here is my resize_image code in application_helper:
def resize_image(imgfile)
pic = Magick::Image.read(imgfile).first
thumb = pic.crop_resized(maxwidth, maxheight,
gravity=Magick::CenterGravity)
thumb.write(imgfile+''thumb'')
end
What happens:
When "ary" contains 50 images to resize, it goes fast on the first 4 images
then the whole thing slows down and and the ruby proccess occupies like 50%
of CPU and 70% of memory and then after 15 pics webrick crashes co...
2006 Apr 07
4
file_column and animated gifs
hi,
is it possible to resize animated gifs with file_column?
if i upload an animated gif file with file_column than the animation no
longer exists...
--
Posted via http://www.ruby-forum.com/.
2008 Apr 10
3
New to ruby, Need help
...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(''pic.jpg'')
end
end
I''m really only familiar with Java, I''ve been researching Ruby for about
a half an hour now and know...well I don''t know much. I particularly
have no idea how to run programs outside of a desktop environment. I
have th...
2006 Feb 28
6
File_column, RMagick, and watermarking
I''m working on a photo gallery and I''m using File_column to handle the
uploads of the files and create my thumbnails, but does anyone here have
any idea how to have a watermark (opaque text maybe) placed over one of
the versions? Any ideas on how to go about this would be great. Even if
it''s just straight RMagick code, that would be fine too.
Thanks in advance for the