# Restrict image to maximum size inputed by me

**URL:** https://forum.kirupa.com/t/restrict-image-to-maximum-size-inputed-by-me/131597
**Category:** Uncategorized
**Created:** [December 17, 2004, 10:13am UTC](https://forum.kirupa.com/t/restrict-image-to-maximum-size-inputed-by-me/131597 "2004-12-17T10:13:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)
#### Post date: [December 17, 2004, 10:13am UTC](https://forum.kirupa.com/t/restrict-image-to-maximum-size-inputed-by-me/131597/1 "2004-12-17T10:13:50Z")

</div>

im getting along with my new system script very nicec now… im allmost finished but found a little problem wile inputing a image url… if i input an url of a image that has bin uploaden to a desination regading size… i like to inplant a function that looks at a image pixel size and if its bigger then 400px width or height it must scale it (without streching) the image so it’ll fit…

i dont have GDlyb on this php server so i think its best to use the width="" in a tag… but how can i do this best?
