Displaying 20 results from an estimated 10000 matches similar to: "Creating versions with file_column but only if file is image"
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 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 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 Apr 28
2
file_column with polymorphic table relationship?
Hello,
I''m just starting out with both Rails and Ruby, so I hope this isn''t too
simple of a question - but I''ve been struggling to find a solution.
I''m using the file_column plugin to handle image uploads and thumbnail
generation. In addition, I''ve wrapped the image into a polymorphic table
so I can have uploaded images associated with multiple
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 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary
amount of image and documents with a product. I am using the
file_column plugin to manage the upload and storage of the images,
like so:
class ProductFile < ActiveRecord::Base
# Accepted MIME types, mime types that are not part of this list are rejected
MIME_EXTENSIONS = {
"image/gif" => "gif",
2005 Nov 16
0
image conversion w/ file column
hey
I''m trying to find a way to convert images that were uploaded using
file_column *before* file_column generates a thumb and copies them to
the final dir - this because 50x50 is pretty small and png would be a
much better format (in smaller dimensions) than jpg or gif.
This is what i have in my model (using rmagick for the conversion):
file_column :image, :magick => {:versions
2006 Feb 20
2
file_column: changing default store_dir
File_column plugin is great. I need to change the default :store_dir
from the dynamic "model_name/attribute_name" to an equally dynamic
"client_id/app_id/model_name/attribute_name". In my model I have:
class Component < ActiveRecord::Base
belongs_to :component_type
belongs_to :component_group
breakpoint
file_column :content,
:magick => { :versions
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 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 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 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 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 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
2005 Sep 09
5
file_column: patched for imagemagick and validation
Hi all,
I patched file_column to add imagemagick transformations of uploaded
content. I added an options hash, and it takes the :magick and
:format keys. :magick is a string of imagemagick command line options
for convert (Reference:
http://www.imagemagick.org/script/convert.php). Format is an optional
extension for the finished image. If Imagemagick recognizes the
extension, then it will
2007 Feb 01
2
file_column 2nd try....
Looks like my first question a couple of days ago wasn?t very clever
asked, at least very sucessfull....
So, anyway...i will try it again:
I have to prefix that I am far away from fully understanding the overall
concept yet, and there?s no way to get some hints in the www so far, at
least my resaerches dont lead to any helpfull stuff.
image_controller.rb:
def create
MiddleMan.new_worker
2006 Mar 15
1
file_column imagemagick strangeness
Hi,
I''m using the basic magick features of file_column,
and while files are uploading fine without the magick options, as soon as I do something like
:magick => { :size => "400x600" }
I get an ''invalid file'' error.
Further investigation reveals that the file is in fact invalid because something somewhere is truncating the file path:
2006 Mar 02
0
path problem with file_column and :magick options
Hi there,
I''m having some problems wityh the :magick options in file_coumn and
wondered if anyone else had any similar ones:
basically, file_column is working fine for me as is, but whenever I try
to do an automatic resize or thumbnail I get the error ''invalid image''.
It seems to be a path issue as I get:
unable to open image
2007 Dec 17
3
not able to view the images after the upload
hi,
i have this problem where in i''m able to upload the images using
file_column
to the server but i''m not able to view the images.i''m not able to see
the images
but then i''m able to view the image name when i click on my show action.
can any one please help??
THIS IS MY LOG as to what happens when i do the image upload.
Processing UploadController#create
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