Hi,
I am using “attachment_fu” plugin for file upload.
I am able to upload photos also.
I have a problem that I have given the resize size to “400 X 400”.
But whenever I am uploading the photo it is resizing the image to “400 X
300”.
Sane thing is happening for the thumbnail as well. I am giving thumbnail
size to “100 X 100” but it is creating image of “100 X 75”
I am not able to get why it is happening.
Any one have any idea.
Here is my model code==
"
class Filedata < ActiveRecord::Base
has_attachment :content_type => :image,
:storage => :file_system,
:max_size => 500.kilobytes,
:resize_to => ‘400x400>’,
:thumbnails => { :thumb => ‘100x100>’ },
:path_prefix =>‘public/user’
end
"
Also, I have to change the path_prefix to folder which is outside the
project directory.
Any help appreciated.
Thanks,
Tushar