# Attachment\_fu width

**URL:** <https://www.ruby-forum.com/t/attachment-fu-width/142341>\
**Category:** Rails\
**Created:** [July 7, 2008, 3:47am UTC](https://www.ruby-forum.com/t/attachment-fu-width/142341 "2008-07-07T03:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paradise](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@paradise](https://www.ruby-forum.com/u/paradise)\
**Post date:** [July 7, 2008, 3:47am UTC](https://www.ruby-forum.com/t/attachment-fu-width/142341/1 "2008-07-07T03:47:01Z")

</div>

Does anyone know how to resize images according to a specific width  
using attachment\_fu? More specifically, I am trying to resize images  
so that they retain their ratio but all have the same width. Thanks.

---

<div class="post-metadata">

**Author:** ![paradise](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@paradise](https://www.ruby-forum.com/u/paradise)\
**Post date:** [July 7, 2008, 7:35am UTC](https://www.ruby-forum.com/t/attachment-fu-width/142341/2 "2008-07-07T07:35:03Z")

</div>

:thumbnails =\> { :large =\> ‘350x350\>’} is the syntax I used and they  
retained their ratios.

---

<div class="post-metadata">

**Author:** ![paradise](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@paradise](https://www.ruby-forum.com/u/paradise)\
**Post date:** [July 7, 2008, 8:15am UTC](https://www.ruby-forum.com/t/attachment-fu-width/142341/3 "2008-07-07T08:15:25Z")

</div>

right, but i think this makes the images within the 350x350 range with  
retained aspect ratio, but i want to make every image have the same  
width and then make the height according to the ratio. does this make  
any sense?
