Displaying 20 results from an estimated 30000 matches similar to: "file_column: Complex image processing with Rmagick"
2006 Aug 11
0
File column and rmagick not creating resizing some images
I am new to RoR. I am trying to use file_column and rmagick to resize
images uploaded to my RoR app. The problem is that only images larger
than the dimensions specified in my code will resize. For instance, if
the uploaded image is 98x98, then the new images will remain that size.
How can I enlarge images using file_column and rmagick?
Here is the code in my model:
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
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 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 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
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
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 Apr 03
0
file_column and adding/changing :versions
I''m using file_column 0.3.1 and I recently installed RMagick on my
machines, so I''m adding the :versions resizing functionality to my
models.
I quickly noticed that resized versions are only being created for newly
uploaded images, and that no magicked versions get created for existing
images. I thought file_column would be smart enough to generate
:versions as needed.
Has
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with
file_column? i tried it and everything works fine, but my question is
can you do more than just make sizes with a version of image? i''m
working on a photo album and i would like to resize the image to a
medium size, but create a thumbnail as well and crop anything left to
make the thumbnail a perfect square.
--
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy.
We use the handy file_column plug-in in some of our apps.
We have a model with a file field and we upload both images and non-images
into this field.
It is specified as follows:
file_column :file_uri, :magick => {:versions => {:thumbnail => {:size =>
''200x''}}}
Well, it works great for images but for non-images, the save fails. The root
cause is an
2006 Jul 10
2
File_Column error msg "Image location invalid image"
I got a strange problem. My image upload worked fine in my XP. However
after deploying to Linux, I am not able to upload images from XP machine
- I get "Image location invalid image" error message.
However, I am able to upload images from linux boxes. Can anyone tell me
what would cause this problem? Is there any setting in file_column that
are specific to the deployment server os?
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 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
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 Feb 27
0
File_Column: Saving image dimentions in database
I''ve been using file_column for a while and it''s the best thing since
sliced bread. But there''s one thing that it doesn''t do that seems like
it''d be a pretty useful feature.
For an app I''m working on I really need to know the dimensions of the
store image in my view (and in general it''s always good to have the
dimensions in your
2006 Jun 01
3
file_column - blank folder created, no upload
i want to upload and resize images so i installed the file_column plugin
but im having a big trouble, i have a table images with (id, name)
fields where the images names/path will be stored, i get a success
message(from the controller after @art_image.save) every time i try to
upload but only a blank directory its created /public/image/name/tmp ,
without errors messages, i see a post related
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 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
2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
Hi guys,
I want to have a file upload form which would allow the user to ask for
certain transformations of the 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
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