# Upload images of a certain size

**URL:** <https://forum.kirupa.com/t/upload-images-of-a-certain-size/145242>\
**Category:** Uncategorized\
**Created:** [April 21, 2005, 1:45am UTC](https://forum.kirupa.com/t/upload-images-of-a-certain-size/145242 "2005-04-21T01:45:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmoothDime](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@SmoothDime](https://forum.kirupa.com/u/SmoothDime)\
**Post date:** [April 21, 2005, 1:45am UTC](https://forum.kirupa.com/t/upload-images-of-a-certain-size/145242/1 "2005-04-21T01:45:07Z")

</div>

Im using a simple html form to upload images to my server.

i’d like to only allow images that are of a certain dimensions to be uploaded. i only want images that are 15 pixeles by 15 pixels to pass through the uploading process.

so how can i determine the width and height of the image before i save it onto my server?

does PHP have these variables available of do i have to use gd?
