Paperclip is a library for the Ruby on Rails framework which makes dealing with file attachments easier. In addition to dealing with standalone files, the library provides convenience methods for creating image thumbnails.

learn more… | top users | synonyms

0
votes
2answers
11 views

Paperclip: width is 100%, height is 60% of width

How would I write a Paperclip style to keep the width of the uploaded image at 100% but crop only the height to 60% of the width? Something like this: has_attached_file :image, :styles => { ...
0
votes
1answer
11 views

Access polymorphic attribute in the view

Trying to work out this small issue, I have finally got my polymorphic association working but now cant seem to figure out how to show an image in the view once a record has been saved. My setup ...
0
votes
0answers
10 views

Paperclip Viewing an Attachment Instead of Downloading

In my view, I have the lines <%= link_to "View", employee_document.file.url, :target => "_blank" %> - <%= link_to "Download", employee_document.file.url %> I want view to open up a ...
0
votes
0answers
17 views

paperclip watermark processor unrecognized option `-crop' error

Just trying to add watermarks to images via paperclip and imagemagick. Here is gist with my watermark processor: https://gist.github.com/xamenrax/6164246 my model is: CONVERT_OPTION_PREFIX = ...
0
votes
1answer
24 views

Multiple models and Paperclip

I was wondering if it is possible to have multiple models all using one central model for its images using paperclip.. So for example I would have a photo model which would use paperclip to store its ...
0
votes
1answer
18 views

Multiple File uploads with paperclip without using Nested attributes

Whenever I have used paperclip to upload multiple images I have created a separate model called images for example and used the accepts_nested_attributes_for in the associated model.. But what if i ...
0
votes
0answers
10 views

Rails Paperclip attached images do not display

I just implemented image attachment using Paperclip. Everything seems to be working great, no errors, except for the fact that the image will not display in view. It displays the alternate text ...
1
vote
0answers
22 views

Active Admin, Rails 4 Nested Form DELETE then INSERT has_one Model

When ever you edit a User that has_one Profile, Active admin DELETE the profile and re create it again, which makes the avatar image to be deleted by paperclip How can i make active admin just ...
1
vote
2answers
42 views

Unable to concatenate video files using FFMPEG, Paperclip, Rails

This is my first post here :) I am just starting with rails, I have a little background in c/c++, but nothing extensive. I am playing around with ffmpeg and I did some minor scaffolding with rails, ...
0
votes
1answer
20 views

PaperClip 3.4: How to regenerate images is _original has been deleted?

Does anyone know if it is possible to tell paperclip to use a file other than _original to regenerate thumbnails from? Our _original files are no longer available and we want to regenerate our ...
1
vote
1answer
44 views

Save a local attachment on the server

Though paperclip gem is generally used for easy file uploads, I have a similar requirement at server side. I have generated an image at server and want to save it in various styles as configured in ...
0
votes
0answers
25 views

Paperclip with multiple servers

We have recently expanded an application to use multiple load balanced servers, and I have a question regarding handling of Paperclip attachments and, more specifically, the delayed upload to S3 ...
0
votes
0answers
9 views

Rails - how to save text data with Uploadify?

I have a page, where I can put a text and to this text I would need to add several images. For uploading images I want to use Uploadify. Now I am solving the problem, that when I choose images and ...
0
votes
1answer
31 views

Rename image using associated model - Paperclip

Code In my image model: has_attached_file :pic before_post_process :rename_pic before_save ->{ p 'before_save ----------------' } after_post_process ->{ p 'after_post_process --------------' } ...
0
votes
0answers
16 views

Rails 3.2 and Remotipart not working in production

I have remotipart in my gem file: gem 'remotipart',:require=>'remotipart' and is not in a group On the development remote uploading with remotipart 1.2.1 works with no issue: <%= form_tag ...

1 2 3 4 5 142
15 30 50 per page