"Attachment_fu" not resizing the images properly

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

I am not an expert in this, but may be it is keeping the ratio? (make it
“400x400” not “400x400>”)

Did you Read The Fine Manual?

If your original image is not square (and the behaviors you are
describing tells me that it is not), then the 400x400> and 100x100>
specs are what you want to use… otherwise you’re skewing the aspect
ratio and the image will likely look horrible or amaturely done.