# Master dimension

**URL:** <https://community.transloadit.com/t/master-dimension/18036>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [December 22, 2011, 12:22pm UTC](https://community.transloadit.com/t/master-dimension/18036 "2011-12-22T12:22:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/daniel1/32/1558_2.png) [@Daniel1](https://community.transloadit.com/u/Daniel1)\
**Post date:** [December 22, 2011, 12:22pm UTC](https://community.transloadit.com/t/master-dimension/18036/1 "2011-12-22T12:22:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on December 22, 2011; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20120218145023/http://support.transloadit.com/discussions/questions/336-master-dimension)

Hello,

When resizing images how can I set a master dimension?  
What I mean is if there is a way of making sure that the width is always for example 50 pixels?

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [December 22, 2011, 12:56pm UTC](https://community.transloadit.com/t/master-dimension/18036/2 "2011-12-22T12:56:00Z")

</div>

Hey Daniel,

you need to use the proper value for the resize\_strategy parameter.

Check here: [http://transloadit.com/docs/image-resize](http://transloadit.com/docs/image-resize)

It sounds like you want to use “pad”.

Kind regards,  
Tim

---

<div class="post-metadata">

**Author:** ![Daniel1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/daniel1/32/1558_2.png) [@Daniel1](https://community.transloadit.com/u/Daniel1)\
**Post date:** [December 22, 2011, 5:59pm UTC](https://community.transloadit.com/t/master-dimension/18036/3 "2011-12-22T17:59:00Z")

</div>

Well, it is not exactly what I am looking for. For example if I need all my images to be exactly 200 pixels wide but the height does not matter I would set the master dim to width. Is this possible?

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [December 22, 2011, 8:33pm UTC](https://community.transloadit.com/t/master-dimension/18036/4 "2011-12-22T20:33:00Z")

</div>

Hey Daniel,

well you could use the resize\_strategy “fit” and just set a very big height setting, like 9999. This would take the specified width as the maximum possible width, resize the image according to it, but preserve aspect ratio.

Kind regards  
Tim

---

<div class="post-metadata">

**Author:** ![Daniel1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/daniel1/32/1558_2.png) [@Daniel1](https://community.transloadit.com/u/Daniel1)\
**Post date:** [December 23, 2011, 10:00am UTC](https://community.transloadit.com/t/master-dimension/18036/5 "2011-12-23T10:00:00Z")

</div>

Won´t the image get stretched then?

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [December 23, 2011, 12:23pm UTC](https://community.transloadit.com/t/master-dimension/18036/6 "2011-12-23T12:23:00Z")

</div>

As I said, “fit” preserves aspect ration.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [January 3, 2012, 9:26am UTC](https://community.transloadit.com/t/master-dimension/18036/7 "2012-01-03T09:26:00Z")

</div>

Closing for now. Let me know if this worked out for you Daniel.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 9:50am UTC](https://community.transloadit.com/t/master-dimension/18036/8 "2026-10-07T09:50:01Z")

</div>

Closed on October 7, 2026, 9:50am UTC


