Displaying 9 results from an estimated 9 matches for "resize_imag".
Did you mean:
resize_image
2006 Jul 26
0
webrick slows and crashes on thumbnail creation
ok here is my view code:
<% for 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(imgfil...
2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
...he image before saving it - most importantly, to
resize it.
Now, how can I make an instance of FileColumn enabled model process these
imagemagick instructions?
My model looks looks somewhat like :
class Image < ActiveRecord::Base
attr_accessor :resize_dimension, :resize_to
before_save :resize_image
file_column :path,
:versions => { "thumbnail" => "100x100>" }
private
def resize_image
# stuff that processes the image with the form-provided values
[:resize_dimension] (can be "w" (width) or "h" (height) ) and [:resize_to],
so as to obt...
2007 Feb 09
7
Upload image without rmagic
I need a way to upload an image and display it without using any of
the plugins that use rmagic. I have used the plugins (file_column,
fleximage) which both use rmagic and gave me problems (never got
fleximage to work)
Thanks in advance - K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Feb 03
3
File_column and rmagick options
Hi,
Currently I''m using the file_column plugin to upload images and save
multiple copies of each at 3 different resoltions:
file_column :name, :magick => {
:versions => { "thumb96" => "96x150>", "medium250" =>
"250x400>", "large480" => "480X640>" }
}
I am wondering if
2006 Mar 08
3
file_column Cropping -> image offset information
Hello,
I had a problem cropping images with file_column. These are my settings:
file_column :image, :magick => {
:versions => {
:thumb => "80x80>",
:medium => "150x150>",
:square => {
:crop => "1:1",
:size => "50x50!"
}
},
2007 Jul 25
3
Using system() to execute a script outside of Rails but in a directory in the Rails app...
I''m trying to hack around a previously mentioned RMagick problem,
confirmed to exist inside of Rails but not outside.
Thus, I''d like to call a Ruby script from with in a Rails controller.
Like so:
system("#{RAILS_ROOT}/public/images/thumb_and_comp.rb",
"#{@asset.file_name}")
But it never seems to get executed.
Permissions are set to 755 on the script.
Any
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/.
2006 Apr 26
3
My GD2 is not working
...cies.rb:123:in
`const_missing''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing''
/usr/local/lib/ruby/gems/1.8/gems/gd2-1.1/lib/gd2/image.rb:120:in `load''
#{RAILS_ROOT}/app/helpers/application_helper.rb:46:in `resize_image''
#{RAILS_ROOT}/app/controllers/product_controller.rb:387:in
`draw_image_for''
#{RAILS_ROOT}/app/controllers/product_controller.rb:149:in
`product_image''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'&...
2006 Jan 04
9
Family Connection 1.0
This is a follow-up announcement from the 0.9 release. There are no
major changes, but this release marks a downloadable (tgz) file as
well as a promotional website, a demo application and screenshots.
Family Connection is an easy-to-setup online hub for your family that
includes a Family News section, and an Address Book.
http://familyconnect.rubyforge.org/
Please note that the download