search for: magick_file_column

Displaying 17 results from an estimated 17 matches for "magick_file_column".

2006 Jun 04
4
"can''t convert Magick::GravityType into Integer"
Am having trouble with file_column -- on certain crop operations, it says: A TypeError occurred in [controller]#[action]: can''t convert Magick::GravityType into Integer [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop'' Any advice? Here''s the backtrace: [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop'' [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `transform_image'' [RAILS_ROOT]/vendor/plugins/trunk/lib/magic...
2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my application (kind of like backpack, I think). The trouble is that I''d like to save image attachments in the same was that file_column saves them--in fact, I''d really like to use a simple assignment like photo.image = attachment to save the image in its proper place. However,
2005 Dec 02
1
Rmagick/File Column Problems
...a new server. I thought I got everything installed but File Column is giving me errors: NameError (uninitialized constant Magick): /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dep endencies.rb:195:in `const_missing'' /vendor/plugins/file-column-0.3/lib/magick_file_column.rb:8:in `transform_with_magick'' /vendor/plugins/file-column-0.3/lib/magick_file_column.rb:96:in `record_cover_magick_after_assign'' /vendor/plugins/file-column-0.3/lib/magick_file_column.rb:95:in `record_cover_magick_after_assign'' /vendor/plugins/file-column-0....
2006 Mar 08
3
file_column Cropping -> image offset information
...to |crop|. For example, cropped = img.crop(x, y, width, height, true) You can 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 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 =>
2006 Mar 15
1
file_column imagemagick strangeness
...path: Magick::ImageMagickError in Images#create unable to open image `rian/www/dev.domain.dom/public/images/example.jpg'': No such file or directory: (''image'' should be `/home/dorian/www/dev.domain.dom/public/images/example.jpg'') This all happens in the file magick_file_column.rb in the method transform_with_magick. The line raising the error is: img = ::Magick::Image::read(absolute_path).first and if I replace absolute_path with a string I get the same truncation happening. I''m going mad trying to sort this out. Has anyone else had this happen to them, or h...
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
2006 Jan 13
1
file_column - how to test for empty column?
...to"), :controller => ''@newsentry'', :action => ''article'', :id => @newsentry) %> <% end -%> Either way I get the error: "cannot convert nil into String" and it is failing here: ./script/../config/../vendor/plugins/file_column/lib/magick_file_column.rb:47:in `exists?'' which tells me that it thinks the if statement is true, but then when file_column tries to test its existence that it fails... I looked in the db, and that field is indeed <null> on the ones that didn''t have files uploaded. What is the proper way to te...
2006 May 15
4
Anyone got a copy of File_Column trunk
Anyone able to post a copy of the svn trunk of file_column? The website''s been down for the past few days, and I''ve only got the last release (0.31, I think), which is missing a whole load of goodies. Tx
2006 Jun 05
1
file_column & RMagick
..._method'' /usr/local/lib/ruby/site_ruby/1.8/RMagick.rb:1002 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' /vendor/plugins/trunk/lib/magick_file_column.rb:208:in `file_column'' /vendor/plugins/trunk/lib/file_column.rb:698:in `file_column'' /app/models/client_listing.rb:2 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support...
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 Jul 19
0
Magick::GravityType Error
Trying to get an app up and running using file_column on Dreamhost, I run into this error on submitting an image to upload: can''t convert Magick::GravityType into Integer #{RAILS_ROOT}/vendor/plugins/file_column/lib/magick_file_column.rb:90:in `crop'' ... I half thought I found the hosting provider specific error in googling and finding this thread: http://lists.rubyonrails.org/pipermail/rails/2006-June/045080.html which points out other people that had the same problem at dreamhost. I contacted dreamhost and they...
2006 Mar 29
0
Extract one page of PDF with rmagick?
...The above example will only process the first page of a PDF. This is great for creating a thumbnail of the ''cover page'' of a PDF, and it avoids the CPU load required to process a huge file. (in this case, the svn-book.pdf is 300 pages) How would I accomplish this using the magick_file_column? To use the command line as an example, the ''svn-book.pdf[0]'' isn''t really and argument such as -size 120x120, etc. How can I pass that [0] to rmagick when I''m processing a PDF? Paul
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
...can verify it, the rmagick check for a valid image returns it invalid when i try to add it. 1 error prohibited this equipment from being saved There were problems with the following fields: Image invalid I traced that part back to this code from within file column. from "/file-column/lib/magick_file_column" <code> class BaseUploadedFile # :nodoc: def transform_with_magick if needs_resize? begin img = ::Magick::Image::read(absolute_path).first rescue ::Magick::ImageMagickError @magick_errors ||= [] @magick_errors << "invalid...
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
...t wont resize it or create a thumb nail like it should, and does on my machine. 1 error prohibited this equipment from being saved There were problems with the following fields: Image invalid im pretty sure that part was generated by this code from within file column. from "/file-column/lib/magick_file_column" <code> class BaseUploadedFile # :nodoc: def transform_with_magick if needs_resize? begin img = ::Magick::Image::read(absolute_path).first rescue ::Magick::ImageMagickError @magick_errors ||= [] @magick_errors << "invalid" return end </code> now im wondering what d...
2006 Oct 18
4
Segmentation bug - file_column?
Hi there everybody, We''re having mongrel processes slowly die on us, with a segmentation fault. I''ve seen a few other people mention similar issues. Any info or suggestions would be nice: Error: /var/www/apps/heritage/current/config/../vendor/plugins/file_column/ lib/magick_file_column.rb:7: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux] Server: Railsmachine.com standard setup, I think it''s CentOS. Mongrel: I just updated _yesterday_ to 0.3.13.4, before that I was on 0.3.13.3 but I wasn''t getting this error. I was instead getting the very...
2006 Jun 01
9
More flexible file column?
The file column plug-in is great, but there is a problem with it. Well, two... But the other is well documented now. :^) Consider a time when you''ve created a CMS for a client and it''s been in use for over a year. Say 1500+ images have been uploaded so far. Now the client comes back with a simple request... ''Can you change the thumbnail size to 80/90, rather than