We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm having an issue where retina rails is ignoring the convert_options that I set.
:convert_options => { :twitter => "-background white -compose Copy -gravity center -extent 640x640" }
:twitter => "-background white -compose Copy -gravity center -extent 640x640"
It converts fine when I turn retina rails off.
I also noticed that retina rails does not respect percentages in the style options, it seems to be converting them to pixels.
I will try to investigate further in the code to see if I can come up with a solution.
The text was updated successfully, but these errors were encountered:
Could you show me the code in your model?
Sorry, something went wrong.
@jhnvz See below.
retina! has_attached_file :image, :styles => { :large => "400x", :grid => "320x", :thumb => "120x", :facebook => "100%x100%>", :twitter => "640x640>" } :convert_options => { :twitter => "-background white -compose Copy -gravity center -extent 640x640", :facebook => "-background white -compose Copy -gravity center -extent 191%x100%" }, :storage => :s3, :s3_credentials => "#{Rails.root}/config/s3.yml", :path => ":class/:attachment/:id/:style/:filename", :s3_headers => { 'Cache-Control' => 'max-age=315576000', 'Expires' => 10.years.from_now.httpdate }, :retina => { :quality => 80 }
No branches or pull requests
I'm having an issue where retina rails is ignoring the convert_options that I set.
:convert_options => {
:twitter => "-background white -compose Copy -gravity center -extent 640x640"
}It converts fine when I turn retina rails off.
I also noticed that retina rails does not respect percentages in the style options, it seems to be converting them to pixels.
I will try to investigate further in the code to see if I can come up with a solution.
The text was updated successfully, but these errors were encountered: