similar to: Conditional extend of active record

Displaying 20 results from an estimated 10000 matches similar to: "Conditional extend of active record"

2005 Dec 19
3
RMagick Resizing Issue
Hello ~ I have RMagick and file_column working in RoR. In my model I am setting up some standard sizes for the submitted photos. The photo files are created and named correctly, but the sizes are wrong. Only the second argument of my geometry call is used, with the width dimension being resized proportionately. file_column :image, :magick => { :versions => { "medium" =>
2006 Mar 08
2
Creating new Magick::Image from uploaded data
Hi! Is it possible to create a new instance of Magick::Image out of uploaded data via file input? Now i save my file to the disk, then read it to create an instance of Magick::Image, resize it and save it again. -- Posted via http://www.ruby-forum.com/.
2007 Apr 19
2
invalid geometry string in change_geometry
I get the following error at the browser: ArgumentError in ImagesController#upload invalid geometry string `110×'' ... for the call to change_geometry with an explicit size (''110x'') as the geometry string: def make_thumb (the_img) require ''RMagick'' size = "110x" debugger if ENV[''RAILS_ENV''] ==
2006 Aug 10
4
How to upload all images in a folder?
Instead of making a form to upload one picture at a time, I''d like to have the File Column plugin accept a directory, and have each picture be uploaded and thumbnails created (w/ RMagick). Has anyone done this? Anyone have a good idea where to start if I were to do it on my own? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
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 Aug 07
4
Memory leak?
I am using BackgrounDRb to resize images after they are accepted into our system. However, it has become clear that this creates a memory leak. I''m not sure exactly where the leak exists, but I don''t think it''s in my own code as it is presently being used in production and has resized thousands of images without a leak occurring, thanks to calling GC.start
2006 Dec 15
6
RMagick=bad, ???=good
I know that Zed has made mention of the fact that using RMagick with mongrel and rails is a bad thing. I''m currently using FlexImage (which in turn uses RMagick) on my application and really haven''t had too many problems. We get a restart for memory usage every 8-10 hours on one mongrel of twelve running, but I''m not sure if that''s an RMagick issue. Either way,
2006 Aug 07
1
Image resizing
Does anyone know of a library to resize images aside from RMagick? RMagick looks awesome but I''ve heard it doesn''t really work on Windows, and it doesn''t work with Ruby 1.8.4. Also, all I need to do is resize some images. With RMagick that might be trying to swat a fly with a howitzer. Thanks. M. -- Posted via http://www.ruby-forum.com/.
2005 Oct 11
8
resize images
Hi, I am looking for the best solution to resize images to fit within a certain area. The images will only be made smaller if they will not fit within a fixed size area. It is important to maintain the same proportions. This ImageMagick extension looks promising: http://vantulder.net/rails/magick/ However, I believe it may be overkill for just resizing images sometimes. I have also seen a
2006 Jun 01
9
Image upload
ok, im done, the plugins file_column and acts_as_attachment doesnt seems to work for me, i want a simple thing, upload images, resize it to 216px width, save its filename to a table and save the file to the /public/images directory, i have searched a lot but all the examples are too complex, im starting with rails. If someone can post a example code for the view, controller and model(if 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/.
2007 Mar 28
3
attachment_fu Not Resizing
Hello, Recently attachment_fu stopped resizing images for me. I''m puzzled because before today it was resizing them and I don''t know what''s changed. Here''s my code: class Product < ActiveRecord::Base has_attachment :content_type => :image, :storage => :file_system, :max_size => 18.megabytes,
2007 Nov 22
7
Problem Installing RMagick with Instant Rails on Windows
I''m running Instant Rails 1.4 on Windows XP with SP2. I have downloaded the Windows binary version of RMagick from the RubyForge page. Specifically, I have downloaded: 1.14.1 binary gem for Ruby 1.8.5 (fixed for RubyGems 0.9.4) RMagick-1.14.1_IM-6.3.0-7-Q8-2.zip I have removed any older versions of RMagick using: gem uninstall RMagick I have updated my version of rubygems. I
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads are working fine. However, when I try and use the :magick options to make resized versions, WEBrick dies. This is the Media model: class Media < ActiveRecord::Base file_column :media_item, :magick => { :versions => { :thumb => {:size =>
2007 May 23
8
ImageScience, Mini-Magick and RMagick
I''m going to be generating thumbnails from user uploaded images. I''m looking around at the libraries available to do this sort of thing and there are three that look promising. ImageScience -- http://seattlerb.rubyforge.org/ImageScience.html Mini-Magick -- http://rubyforge.org/projects/mini-magick/ RMagick -- http://rmagick.rubyforge.org/ It looks like a lot of people are
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 Jun 30
1
delay displaying rmagick resizing of uploaded images
Hi, I am using rmagick to resize a copy of uploaded images and display the copy as a thumbnail. Once the upload is processed it redirects the user to a page that should display the thumbnail to the user. The problem is that the rmagick resize function seems to keep going in the background after handing the new images url (and control) back to rails, which then happily renders the page with
2005 Jun 06
14
Handling Images And Rails
On my website people will be able to upload images of themselves. I was wondering how people are presently handling uploading, resizing and optimizing images in Rails? Do you use a specific piece of software to do it? What would you guys recommend? Any code from RailsDay? :-) Also, do you guys store the images in the DB or just as files? What do you suggest? What are the pros and
2007 Jul 11
7
Best way to upload an image and make a thumbnail
Hi, which is the best way to upload an image, keep that and also make a thumbnail? The images should not be stored in the database, but as normal image files in a specific directory. I think that for the thumbnail i should use rmagick, but for the upload ? (something which work with and without javascript, in every browser) Thanks :) -- Posted via http://www.ruby-forum.com/.
2009 Jan 10
1
Help resizing mages
I have a web in development. I need to upload some images and to resize them in a form. I am able to upload some imags thanks to paperclip, but I have problems resizing this images. I am becaming mad trying to make work ImageMagik and Rmagick and I think it will became a lot worse once I find a host a put the web in production. So I wonder if its another way to resize images. I have used other