Displaying 20 results from an estimated 8000 matches similar to: "File column and rmagick not creating resizing some images"
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" =>
2007 May 13
0
Problems with RMagick libraries
Hi, I''m trying to use File_colum plugin
(rails/../plugin/trunk)
with RMagick.
When I use in the model:
class Usuario < ActiveRecord::Base
file_column :image
...rest of the code....
end
There''s no problem, images are uploaded and all is working ok. The
problem comes when I try to use:
class Usuario < ActiveRecord::Base
file_column :image, :magick => { :geometry =>
2005 Dec 02
1
Rmagick/File Column Problems
I am having trouble getting Rmagick and File Column working on 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
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 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick:
uninitialized constant Magick
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in `const_missing''
./script/../config/../vendor/plugins/rails_file_column/plugins/
file_column/branches/kyle/lib/file_column.rb:621:in `file_column''
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
So ive recently finished up my first RoR application and made sure it
all worked right on the windows machine i developed it on. then deployed
it on GeekISP.com which runs Open/Free BSD. I had to jump through a few
little hoops to get it working and set the permissions for file_column
to create directories, but it still doesnt work right. When i go to add
a new item to the database and try
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,
2006 Aug 23
0
Rotating Images with file_column
Hi everyone,
I have a photo site that I''m making and I''m using file_column to
handle the auto-generation of several "version" of each photo:
essentially thumbs and fuller-sized version. The full sized versions
retain the original''s proportions, whereas the thumbs are all 4:3.
This means most of the thumbs are cropping the original. This all
works great, but 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 =>
2006 Jun 05
1
file_column & RMagick
Hi,
I have a site where I wish to upload a resize a picture, and store it in
the file system. The best solution that I have found for this so far is
using file_column. This was working great, for about an hour, but all of
the sudden I began to get the following error (only when i attempt to
resize).
NameError (undefined method `assoc'' for class `Magick::ImageList''):
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by
2007 Jan 04
1
rmagick working in console but not in my app
hey all,
When I do this in script/console I get:
>> require ''RMagick''
=> true
>> include Magick
=> Object
>> f = Image.new(100,100) { self.background_color = "red" }
=> 100x100 DirectClass 16-bit
>> f.crop_resized(50,50)
=> 50x50 DirectClass 16-bit
But in my application I keep getting the same error as if rmagick was
not
2006 Jun 14
1
file column validates_format_of
Been manually testing file column with success except it seems to upload
the file before validating it. Also .pdf files (which shouldn''t even
validate) crash WEBrick. What am I missing to solve these problems?
(apart from a brain!)
validates_presence_of :title, :file
validates_format_of :file, :with => %r{.(gif|jpg|png)$}i,
:message => "File must end with .jpg, .gif or
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!"
}
},
2006 Nov 21
1
file_column and resizing only when it's bigger issue
I have limited space in my web design to display the logo of the upcoming
event. So I put in code like this.
file_column :image, :magick => { :versions => { "250x165" => "250x165"}}
I was under the assumption that the image under directory 250x165 will be of
this size if the image is bigger than 150x165. But I found out that for an
image of size 134x88 the image
2006 Aug 12
5
Rmagick not handling GIF files properly...
Tracked down the source of my problem...
It seems that Rmagick isn''t properly cropping/resizing GIF or PNG images
when uploaded via file_column. I can upload JPG files just fine.
Originally I had installed ImageMagick via Debian''s apt-get and built the
rmagick gem using "gem install rmagick". This wasn''t working so I
uninstalled ImageMagick and tried to
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
So I''ve recently finished up my first RoR application and made sure it all
worked right on the windows machine i developed it on. then deployed it on
GeekISP.com which runs Open/Free BSD. I had to jump through a few little
hoops to get it working and set the permissions for rails to create
directories, but it still doesnt work right. When i go to add a new item to
the database and try
2006 Mar 26
2
File_Column plugin causes strange errors on windows
I installed the File_Column plugin and setup my relationships.
create_table "screenshots", :force => true do |t|
t.column "image", :string, :limit => 255, :null => false
t.column "description", :text
t.column "created_on", :datetime, :null => false
t.column "item_id", :integer, :null => false
t.column
2006 Jul 21
1
setting image resolution with Rmagick
Hi
Has anyone had success with setting image resolution with Rmagick.
I am resizing an uploaded image with Rmagick, problem is it keeps the
original images resolution and I want to change it to 72dpi.
<<<<<< code example >>>>>>>>>>
# these are the various techniques I have tried when and after reading
the file, trying any or all of them does
2006 Feb 21
4
File_Column w/ Dynamic Sizing
I''m running file_column 0.3.1, and having a few problems... which are:
- Uploading a 378x567 jpg, and using :magick => {:geometry =>
"100x100" }, my image ends up being 67x100 ?
Is there a way to "force" the image to be the size you specify ?
- My view has a drop-down of sizes, and I''m trying to pass in this
size into :magick =>