Displaying 20 results from an estimated 10000 matches similar to: "Cropping images with RMagick after uploading with acts_as_attachment"
2007 May 05
0
acts_as_attachment - no thumbnails?
the full-size pics upload OK, but no thumbs or resizing. There are no
errors or exceptions that I can see, just not getting any thumbnails.
The DB column ''thumbnail'' is always NULL
rmagick-1.15.6 is freshly installed.
I have the :thumbnails stuff setup per
http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing
using a model like this:
class EventPic
2008 Jul 29
1
can't crop images using ImageMagick
I''m using Attachment_Fu to save several thumbnails of a photo
(resizing with ImageMagick)
But when I try to crop them, nothing seems to happen to the file I
want to drop and no error messages. I check the file timestamp of the
thumbnail I want to crop and it looks updated. What''s strange is that
ALL the other thumbnails and the original image''s file timestamps are
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!"
}
},
2007 Feb 06
1
Attachment_fu ImageScience FreeImage thumbnail quality
I''ve tried migrating acts_as_attachment to attachment_fu (just to see
if I could replace RMagick with ImageScience+FreeImage), but the
quality of the thumbnails is just horrendous, blurred beyond
recognition (downscaling a 1280x1024 to a few considerably smaller
thumbnails).
Changing attachment_fu to use RMagick again and the thumbnails were
crispy sharp again.
I was wondering
2008 Sep 15
1
RMagick Image Rendering Problem
RMagick Image Rendering
I am fairly new to Ruby on Rails and I have been trying to upload images
and create thumbnails using the "Processing Uploaded Images" recipe from
the Rails Recipes book. The script uses RMagick to create thumbnails of
the uploaded images and saves both the uploaded images and the
thumbnails in the public/uploaded_images directory. However when I
upload an image,
2006 Mar 27
3
RMagick and thumbnails
I''ve based my code on the Agile example for uploading files, pages
362-365. I''ve successfully loaded the Picture object to the database,
but I come unstuck when trying to replicate this for a thumbnail version
of the original image:
thumbnail = Thumbnail.new
thumbnail.name = ''thumbnail_'' + @picture.name.to_s
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
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,
2008 Apr 15
4
is there a way to outsource image uploads?
I''m trying to keep my rails app lean and mean and want to avoid (if
possible) dealing with image uploads, thumbnail generation, running
RMagick etc.
I was excited about Amazon letting you upload files directly from the
browser to your S3 bucket (http://doc.s3.amazonaws.com/proposals/
post.html) but I couldn''t figure out how to generate thumbnails - has
anyone figured this out?
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 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/.
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
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 Apr 23
2
file_column and Thumbnails
I see that the SVN version of the excellent file_column plug-in can create
thumbnails using the url_for_image_column helper.
This uses Rmagick to create the thumbnail... Quick question...
Let''s say the file is a TIFF image - can the helper create a JPG version of
the thumbnail for display in the browser?
Curious if the plug-in can handle that transform with some creative use of
the
2007 Jul 25
0
Acts as attachment thumbnail problem
Hi there
I am using Acts as attachment to store thumbnails in a file system.
That part works fine :-) Along with my pic form I''m sending other
information and I want to store that information in the thumbnail row
as well as the parent image row... but I can''t figure out how to do
it! The info is stored in the row that contains the original img info
with no problems, but
2007 Feb 13
4
PDF Thumbnail - RMagick
Hi,
I need to create a preview of a PDF upload to a CMS I''m building. Does
anyone know how to create a thumbnail of the first page of a PDF using
RMagick?
Any ideas welcome,
~ Mark
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
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
2007 Aug 18
0
RSpec and acts_as_attachment
Hey guys,
I''m getting a weird error when trying to test something like the
following. It''s a model that is using acts_as_attachment but the
weird thing is the equivalent Test::Unit case passes. Does anyone
have any ideas?
Best,
Dave
# it was a Test::Unit case first
def test_should_be_invalid_without_file
UserFile.any_instance.expects(:with_image).never
2009 Apr 16
6
Using Paperclip::Processor and RMagick to sharpen my thumbnails
Hi, I''m brand new to RMagick (and pretty new to Rails for that
matter!). Right now, site owners are allowed to upload product and
ingredient photos to the website. Everything works great, ingredients
are sized down and proportioned correctly...the problem is that the
resulting images are so blurry! So I''ve been doing some research and
it looks like Paperclip::Processor may be the
2009 Apr 21
3
attachment_fu giving problem on production
Hello friends,
I have configured attachment_f. It''s working fine on Local(development)
system but giving problem on production. Basically on production the
attachment_fu is not able to generate thumbnail image it saving the original
size image. Below is the configuration.
has_attachment :content_type => :image,
:storage => :file_system,
:max_size