Questions tagged [attachment-fu]

attachment_fu is a plugin by Rick Olson (aka technoweenie) and is the successor to acts_as_attachment.

attachment_fu is a plugin by Rick Olson (aka technoweenie http://techno-weenie.net) and is the successor to acts_as_attachment.

77 questions
1
vote
2 answers

Validating image dimensions in attachment fu

When the image gets saved, the height and width of the image get saved in the model correctly. I have a requirement where I need to validate the dimensions of the image before save. It has to be of precisely the same dimensions. But when I try to…
Chirantan
  • 15,304
  • 8
  • 49
  • 75
1
vote
1 answer

Rails : Trouble installing attachement_fu on Heroku

I'm trying to deploy an app on heroku. My trouble is to install hattachement_fu plugin. I ran the following command to install it directly on the server. heroku plugins:install http://github.com/technoweenie/attachment_fuand" and I get the…
ProxyGear
  • 835
  • 1
  • 10
  • 26
1
vote
0 answers

attachment_fu rmagick on phusion passenger

I am getting so much pain with setting up rmagick on Passenger . I’m developing a rails web application that has image processing feature using imagemagick. the image processing feature is working 100% on development using mongrel, but once i deploy…
Steven
  • 565
  • 2
  • 5
  • 11
1
vote
1 answer

attachment_fu custom processor and s3: file seems to be converted ok, but isn't saved

Setup: ruby 1.8.6 rails 2.2.2 attachment_fu - not sure (it's vendorized), but last entry in CHANGELOG is "Apr 17 2008" aws-s3 (0.6.3) aws-sdk (2.1.13) aws-sdk-core (2.1.13) aws-sdk-resources (2.1.13) I have a model which uses attachment_fu like…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
1
vote
1 answer

ImageMagick, passenger, rails, attachement_fu doesn't resize

So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can't seem to fix: First of all in development all is working perfectly. In deployment on my server it isn't though!. I use…
heldopslippers
  • 828
  • 2
  • 9
  • 20
1
vote
0 answers

With the attachment_fu rails plugin, is there any way to delete files uploaded to Amazon S3?

Let's say I'm using attachment_fu to attach profile pics to user profiles in a system, with Amazon S3 used as the actual file storage. When users upload new profile pics, I'd like to replace the attached file with the new one. I can do this within…
Eric Nguyen
  • 40,312
  • 4
  • 25
  • 31
1
vote
1 answer

Attachment_fu error

I am getting an error while trying to upload images on an Ubuntu machine that's running Rails 2.3.4, Ruby 1.8.6 using attachment_fu with image science. FreeImage exception for type ???: IPTC: Invalid key 'Tag 0x025C' The error seems to point to this…
cswebgrl
  • 687
  • 1
  • 7
  • 11
1
vote
3 answers

Need ideas for reprocessing images using attachment_fu

I discovered a bug in my Rails app due to Rails app and gems upgrades and undocumented code from the previous developers. I have a lot of images that have been processed, but not sized correctly using attachment_fu. All of the images that were…
cswebgrl
  • 687
  • 1
  • 7
  • 11
1
vote
2 answers

Attach 1 or more (non image) files to rails application, with having to install an image-processing library

I'm currently learning rails by creating a simple project management app. I've gotten to the point where I would like to be allow a user upload multiple files - pdfs, docs, xls etc. The user only needs to be able to attach one file at a time, but…
Hinchy
  • 683
  • 2
  • 7
  • 19
1
vote
1 answer

Attachment_fu: can't disable :partition option

I'm trying to use the Attachment_Fu plugin in a Rails project, and want to customize the paths where uploaded files are saved. The documentation shows this option: :partition # Whether to partiton files in directories like …
Nathan Long
  • 122,748
  • 97
  • 336
  • 451
1
vote
4 answers

Flickr style resizing with attachment_fu

I want attachment_fu to resize my thumbnails in a similar way to how flickr, facebook and twitter handle this: If I want a 100x100 thumbnail I want the thumbnail to be exactly 100x100 with any excess cropped off so that the aspect ratio is…
Mike Sutton
  • 4,191
  • 4
  • 29
  • 42
1
vote
1 answer

MMS2R and Multiple Images Rails

Here's my code: require 'mms2r' class IncomingMailHandler < ActionMailer::Base ## # Receives email(s) from MMS-Email or regular email and # uploads that content the user's photos. # TODO: Use beanstalkd for background queueing and…
Maletor
  • 41
  • 3
1
vote
2 answers

How to improve performance with our Rails image model and attachment_fu?

I've been trying to improve performance our app. The worst performing area seems to be the creation of our Image model, which uses attachment_fu: class Image < Attachment ... has_attachment :content_type => :image, :max_size =>…
Callmeed
  • 4,972
  • 5
  • 34
  • 49
1
vote
2 answers

Serving files over HTTPS dynamically based on request.ssl? with Attachment_fu

I see there is a :user_ssl option in attachment_fu which checks the amazon_s3.yml file in order to serve files via https:// In the s3_backend.rb you have this method: def self.protocol @protocol ||= s3_config[:use_ssl] ? 'https://' :…
Marston A.
  • 1,153
  • 1
  • 12
  • 10
1
vote
1 answer

Using attachment_fu, how do you edit an existing photo, update only thumbnails, and leave original unedited?

After a photo is uploaded and created using attachment_fu, is there a way to edit just the thumbnails and leave the original as it is? I understand how to do the resizing or cropping, but it's applying the edits to all of the thumbnails and the…