- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 i'm cropping images with paperclip.
i have a custom module which works great on my local machine (copied from railscast 182).
//file: lib/paperclip_processors/cropper.rb
module Paperclip
  class Cropper < Thumbnail
    def transformation_command
      if crop_command
        crop_command + super…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 UPD
class User < ActiveRecord::Base
  Paperclip.options[:swallow_stderr] = false 
  has_attached_file :photo, :styles => { :square => "100%", :large => "100%" },
    :convert_options => {
      :square => "-auto-orient -geometry 70X70#",
      :large => "-auto-orient -geometry…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 I use Heroku for my app.
I want to auto-orient image and then to resize it. So I do:
class User < ActiveRecord::Base
  Paperclip.options[:swallow_stderr] = false 
  has_attached_file :photo, :styles => { :square => "100%", :large => "100%" },
    :convert_options => {
      :square…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 Hi,
I use paperclip to add a file to my model.
I want to use the new feature of firefox 3.6, xhr.sendAsBinary, to send a file with an ajax request.
Here is how I build my request :
var xhr = new XMLHttpRequest();
xhr.open("POST", "/photos?authenticity_token=" + token 
                      …
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 First off, we have this namespaced/sti'd structure for our different types of 'Media'
Media< Ar::Base
Media::Local < Media
Media::Local::Image < Media::Local
Media::Local::Csv < Media::Local
etc... etc..
This is excellent since a user can have many media, and how we display each piece…
            >>> More