I'm using Paperclip for my app and the images are not conforming to the sizes I have set them to. I'm using paperclip and rmagick and have ImageMagik installed. When I ran where convert I got
C:\Program Files\ImageMagick-6.8.9-Q16\convert.exe
C:\Windows\System32\convert.exe
Development.rb
Paperclip.options[:command_path] = "C:/Program Files/ImageMagick-6.8.9-Q16/convert.exe"
Gemfile
gem 'paperclip'
gem 'rmagick', '~> 2.13.2', :platforms => :ruby
User.rb
has_attached_file :avatar, styles: { medium: '210x260>', larger: "300x300>", thumb: "100x100>" }, default_url: "/assets/default.png"
validates_attachment_content_type :avatar, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
view
<%= image_tag @user.avatar(**style**) %>
I'm testing it on two different images at different sizes, A (originally: 960x688 ) and B (originally: 160x160)
A(:thumb) becomes 100x72
B(:thumb) becomes 100x100
A(:medium) becomes 210x151
B(:medium) becomes 160x160
A(:larger) becomes 300x300
B(:larger) becomes 300x300
I've tried re-uploading the image after I change the size but get the same results. So, does paperclip have a problem with different size images or is there a problem with my code?