here's how to use convert_options from the comments in paperclip.rg:
has_attached_file :avatar, :styles => { :large => "300x300", :negative
=> "100x100" }
:convert_options => {
:all => "-strip",
:negative => "-negate"
}
On Sep 2, 8:45 am, Neil Cauldwell <[EMAIL PROTECTED]>
wrote:
> For various reasons, I made a git branch and installed Paperclip in
> place of attachment_fu. Paperclip works great except that images seem to
> have lost some quality; edges have gone a little too jaggy to be able to
> drop attachment_fu just yet. After a post on the Paperclip Google Group,
> someone suggested the :convert_options could be passed additional
> attributes, like 'quality', and could make a difference. I've attempted
> to pass these options across, but, they don't seem to work; I'm probably
> sending them incorrectly because visually obvious options, like
> 'rotate', clearly don't do anything (or throw any errors, either). Does
> anyone know what I'm doing wrong here (?);
>
> # Attempt no.1
> has_attached_file :avatar, :convert_options => { :rotate => "-rotate
> -90" },
> :styles => {
> :thumb_45 => '45x45#'....
>
> # Attempt no.2
> :convert_options => { :rotate => "-rotate '-90'" }
>
> # Attempt no.3
> :convert_options => { :rotate => "-90" }
>
> # Attempt no.4
> :convert_options => { :rotate => -90 }
>
> Also, attachment_fu was really easy to set up with S3. I followed a
> tutorial from Railsforum (1.), and got it working first time. I've read
> through the Paperclip docs (2.), but I find the RDocs format to be
> pretty inaccessible for a newbie (does '+s3_credentials+' equate to
> :s3_credentials, as a symbol?), so I haven't worked out how to use
> Paperclip with S3 or found a tutorial from which I could probably learn
> how to do so. Does anyone know, a) how to include the S3 options and
> configure paperclip to send images over to S3, and, b) if I'll get good
> results (searching the Paperclip google groups suggests that there could
> be some issues with paperclip & S3)?
>
> 1.http://railsforum.com/viewtopic.php?id=17815
>
> 2.http://dev.thoughtbot.com/paperclip/
>
> Any help is tres appreciated (that's an understatement).
>
> p.s. another dev (not working on the app anymore) set up some European
> buckets, and I want to delete them - but the S3Browser keeps telling me
> 'Redirected to Nowhere' whenever I try to do so - any ideas on how to
> fix that?.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---