# Resize photo attachment\_fu

**URL:** <https://www.ruby-forum.com/t/resize-photo-attachment-fu/156343>\
**Category:** Rails\
**Created:** [December 25, 2008, 2:46am UTC](https://www.ruby-forum.com/t/resize-photo-attachment-fu/156343 "2008-12-25T02:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton\_effendi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Post date:** [December 25, 2008, 2:46am UTC](https://www.ruby-forum.com/t/resize-photo-attachment-fu/156343/1 "2008-12-25T02:46:19Z")

</div>

Any body can help me???

How to resize photo in attachment\_fu plugin… but size of photo has  
logic…

the logic is

- If the image is wider than tall:

thumbnail: width = 110px height = proportional

standard: width = 520px height = proportional

original: store original

- If the image is taller than wide:

thumbnail: width = proportional height = 110px

standard: width = proportional height = 520px

original: store original

so… when upload, attachment\_fu will make 3 photo… thumbnail,  
standard,  
original…

Please help me. Thank you.

–  
Wu You Duan
