# Resize dynamic photos while maintaining picture layout

**URL:** <https://forum.kirupa.com/t/resize-dynamic-photos-while-maintaining-picture-layout/170699>\
**Category:** flash\
**Created:** [November 28, 2005, 11:21pm UTC](https://forum.kirupa.com/t/resize-dynamic-photos-while-maintaining-picture-layout/170699 "2005-11-28T23:21:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YoungNastyMan](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@YoungNastyMan](https://forum.kirupa.com/u/YoungNastyMan)\
**Post date:** [November 28, 2005, 11:21pm UTC](https://forum.kirupa.com/t/resize-dynamic-photos-while-maintaining-picture-layout/170699/1 "2005-11-28T23:21:07Z")

</div>

I hope this makes sense. I need help in dynamically loading photos while automatically resizing them and maintaining either their landcape or vertical layout depending on how the picture was taken. I found a code that works great to dynamically load and automatically resize to my specifications, but what if the layouts are different between pictures (ie - the camera was held vertically or horizontally when the picture was taken)??

This is basically going to help me in designing a website for my dad’s coin business. The code I mentioned previously works great to display square pictures of coins, but I need some way to dynamically load other pictures of varying dimensions.

Any help will be greatly appreciated!!
