Forum: Ruby on Rails file_column quality problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cc1c1f4c3a354d578c709a602efa3b45?d=identicon&s=25 Aldo Italo (aldoitalo)
on 2009-02-28 11:26
i usising file_column to upload images in my scaffold.
i setting quality compression images to value 70 for creating various
versions optimized of uploaded image:

example of my code:

file_column :image_url, :magick => { :size => "600x450>", :versions => {
"thumb" => "96x100>", "othumb" => "x80>", "vthumb" => "80x", "big" =>
"600x450>" }, :attributes => { :quality => 75 } }


but it not work very properly: if i upload images of 50 - 100 Kb the
results thumbnail they weigh 3 or 4 Kb, that's ok.....
but if i upload images of 500 Kb - 1 Mb my results thumbnails weigh is
20- 30 Kb.
Why?
This topic is locked and can not be replied to.