paperclip

Why would Paperclip be failing to find the geometry key when on my server?

I'm getting an error in thumbnail.rb saying :geometry is empty Here's a condensed version of the stack: NoMethodError in PagesController#create undefined method `[]' for nil:NilClass RAILS_ROOT: ... Application Trace | Framework Trace | Full Trace .../vendor/plugins/paperclip/lib/paperclip/thumbnail.rb:18:in `initialize' .../vendor/...

Ruby: Paperclip, S3, and Deep-cloning

What I have is a Theme model, which contains many Assets. Assets are using Paperclip and storing their file content in my Amazon AWS-S3 system. I'm also using deep_clone because my customers have the ability to copy built in Themes and then modify them to their hearts content. All the deep_clone stuff is working great, but when I deep...

Problem when trying to upload image from Flex to PaperClip with creating thumbnail

I'm trying to upload an image from Flex to Rails. It uploads fine if I just want to upload the original but when I tried to add Thumbnail I got the following error: [paperclip] identify '-format' '%wx%h' '/var/folders/RH/RHekFGKME9uDJbX4d4DG3E+++TI/-Tmp-/stream,23830,0.jpeg[0]' 2>/dev/null [paperclip] An error was received while process...

simple text to image solution for rails

Before I start rolling my own using Rmagick I though i'd ask as this is probably a quite common use case. I have a few hundred email addresses which I would like to display to the user for each entry however I would like to avoid displaying the emails as plain text to avoid scraping, so I'm looking for some text-to-image solution. It ...

Paperclip with MongoMapper in Rails 3

I'm trying to implement Paperclip in my first rails app, and I happen to be using rails 3 and mongodb with mongomapper. I followed this guide on getting there things to all work together http://www.bencurtis.com/2009/08/paperclip-and-mongomapper/ Just as the blog post suggests, I've put paperclip into the config/initializers directory,...

paperclip and functional test problems (rails)

I'm having problems with my functional tests involving paperclip and attachments. I'm using the fixture_file_upload method to fake the attachment uploads. My tests intermittently give me the error below (or one similar to it), generated by a factory_girl call to create the object containing the attachment, which is in my setup block. @...

Testing Paperclip file uploading with RSpec

I don't really care about testing file uploads, but since I have validates_attachment_presence, etc.. in my model, rspec is complaining. So now I'm creating my model with these attributes in the spec to try and shut it up: @attr = { :name => "value for name", :title => "value for title", :content => "value for content", :pic_fi...

Problems using attribute_fu to update a record

I'm using attribute_fu and paperclip to add multiple images to a specific record. This is working great when creating a new record but when I want to add new images to an existing record through a common scaffold update, the images upload but replace the existing images. Any thoughts or advice? ...

Why am I getting Paperclip::CommandNotFoundError with deploy and not on my local?

[paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null [paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError> [paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null [paperclip] An error was received while processing: #<Paper...

Paperclip error: "no decode delegate for this image format"

I use Windows 7 and I installed ImageMagic. I can run Identify command from console without a problem. But when I use my Rails application (run from Aptana RadRails IDE), it gives me an error: Magick: no decode delegate for this image format `/Users/karl/AppData/Local/Temp/stream,5000,1.jpg[0]'' @ error/constitute.c/ReadImage/532. Mag...

Completely stumped by "is not recognized by the 'identify' command" error in rails/paperclip on windows dev box.

Nothing I have tried seems to have any impact at all on this error. The code is working on both a Mac Pro dev maching as well as our Ubunto 9.10 server. Dev work is using Mongrel not Passenger. I am fully and completely stumped. Willing to try anything. I followed this: http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-he...

Paperclip command errors switching from one processor to another in Passenger

I have an application that uses Paperclip to upload and transform both image graphics (pngs, gifs, jpgs) and video files (flv, mov, et al) in the same ActiveRecord class. Because I am working with files that need to be processed with ffmpeg, I have written a custom processor to deal with the videos. In the model where Paperclip is imple...

Paperclip Amazon S3 setup with Heroku

has_attached_file :image, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => "/:style/:filename" What is this :path => "/:style/:filename"` I also want to to include the style for this attached image, is that what the :path is? the style I want is this: :styles => { :medium => "275x275>", :thumb => "175x155>" }...

rspec - paperclip not loading attr_accessors

I'm using Rails 2.3.5, paperclip 2.3.3 with rspec and factory_girl. Can't figure out why the attr_accessors are undefined when I try to test upload or simply calling. e.g. account.profile_photo.file? undefined method `profile_photo_file_name' for #Account:0x105970af8 Where I have it running properly in Development. account.rb h...

Uploading & Unzipping files to S3 through Rails hosted on Heroku?

I'd like to be able to upload a zip file to my Rails application that contains a number of images. Then I'd like Rails to unzip that file and attach the images inside to my Photo's model via Paperclip, so that they are ultimately stored on my Amazon S3 account (configured through Paperclip). I'd like do do this all on my Rails site host...

youtube video upload with uploadify and paperclip custom processor ruby on rails ???

hi all I have a file uploader that currently uploads images / pdf with a nice progress bar using uploadify and saves to S3 using paperclip. I want to upload videos the same way but instead of to s3, i want to save to youtube. Is there a processor or something that i can use to save to youtube ? Would i be able to see the progress via...

rake paperclip:refresh class=foobar from S3..

I am try to perform the function: rake paperclip:refresh class=foobar And it begins to work, but it looks like it gets hung up with this stack.. : ** Invoke paperclip:refresh (first_time) ** Invoke paperclip:refresh:metadata (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute paperclip:refresh:metadata r...

Using accepts_nested_attributes_for with rejects_if

I'm using paperclip to attach photos to one of my models: class User < ActiveRecord::Base has_many :photos accepts_nested_attributes_for :photos end class Photo < ActiveRecord::Base belongs_to :user has_attached_file :data end How can I use reject_if to ignore data fields to which files are not uploaded by users? ...

Amazon S3 Gem for Rails 2.3?

Which Amazon s3 gem is compatible with Rails 2.3 ? It needs to be compatible with the Paperclip gem too. ...

Paperclip and Amazon S3 URL is too long

When the an image is stored to Amazon S3 using Paperclip the url of the image is too long: e.g. http://s3.amazonaws.com/railsapp/Users/am/Desktop/railsapp/public/system/avatars/1/thumb/16110022.jpg?1171724004 (this is basically http://s3.amazonaws.com/[bucketname]/[path on mac to image]) This is in my user model: has_attached_file :...