# Resize Images: Upload or Viewing?

**URL:** https://forum.kirupa.com/t/resize-images-upload-or-viewing/186720
**Category:** flash
**Created:** [April 24, 2006, 2:42am UTC](https://forum.kirupa.com/t/resize-images-upload-or-viewing/186720 "2006-04-24T02:42:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)
#### Post date: [April 24, 2006, 2:42am UTC](https://forum.kirupa.com/t/resize-images-upload-or-viewing/186720/1 "2006-04-24T02:42:48Z")

</div>

Hey everyone,

```
I am using the [photo gallery (click to view tutorial). However, I'm trying to determine what is better: **Resizing images to fit the photoGallery's size requirements via Uploading (e.g. PHP) or Resizing images via a code in AS.** My appologies if this has been covered elsewhere in this forum. I searched and read, but could not find answer to my question. I can find examples that resize the boarder to fit the image (e.g. [URL="http://www.kirupa.com/forum/showthread.php?t=51430&highlight=gallery+resize"]http://www.kirupa.com/forum/showthread.php?t=51430&highlight=gallery+resize](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)). However, I want the boarder to remain the same size and image to just resize accordingly.  

```

Thanks and let me know if I need to clarify my post,  
John Bailey

---

<div class="post-metadata">

### Author: ![foomonkey10](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@foomonkey10](https://forum.kirupa.com/u/foomonkey10)
#### Post date: [April 24, 2006, 4:21am UTC](https://forum.kirupa.com/t/resize-images-upload-or-viewing/186720/2 "2006-04-24T04:21:41Z")

</div>

Hello,

there are several ways to go about this, you need to pick one

1. resize the image with PHP when the file uploads. This has an advantage so that when the users download the image to flash it doesn’t take as long
2. simply resize the border in flash. Simply make the border image\_mc.\_width + 5; This is the easiest way.

Good luck.
