# Resize MC based on loaded image

**URL:** <https://forum.kirupa.com/t/resize-mc-based-on-loaded-image/259081>\
**Category:** Uncategorized\
**Created:** [April 30, 2008, 10:18pm UTC](https://forum.kirupa.com/t/resize-mc-based-on-loaded-image/259081 "2008-04-30T22:18:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodman650](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Post date:** [April 30, 2008, 10:18pm UTC](https://forum.kirupa.com/t/resize-mc-based-on-loaded-image/259081/1 "2008-04-30T22:18:28Z")

</div>

Hi all,

I’m not really sure how this works but I’ve seen a lot of examples online. There is a gallery in which a black background resizes and an image of the same aspect ratio loads on top of it. When a new image is selected, the background changes shape to accomodate the new dimensions.

Any direction would be greatly appreciated. Thanks in advance!

Woody
