# Image is bigger then size of screen

**URL:** <https://forum.kirupa.com/t/image-is-bigger-then-size-of-screen/318349>\
**Category:** flash\
**Created:** [January 17, 2011, 10:57pm UTC](https://forum.kirupa.com/t/image-is-bigger-then-size-of-screen/318349 "2011-01-17T22:57:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treeleaf20](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Post date:** [January 17, 2011, 10:57pm UTC](https://forum.kirupa.com/t/image-is-bigger-then-size-of-screen/318349/1 "2011-01-17T22:57:10Z")

</div>

All,  
I currently have some code that displays an image in a pop up and just takes the width and height of the image. My problem is that some of the images are larger then my screen. How can I get the size of my screen and then readjust the width and height of the image based on that? Thanks for any advice in advance!
