August 11: Take a look at ImageMagick

at the small photo size (100K to 250K) the application works very well becaus eof the fast upload time.
Anything above 1M-2M, the application times out because the photo is 10x bigger.

So it seems that we need to resize all photos to 100K-250K first before we apply them to your upload application.

We are looking for a RESIZING application. In the past (2001), Sang Tao has looked at a package called Image Magick which has many good utilities (on the fly resizing)

Here is the link

With the right utility from the Image Magick collection of graphics tools, you can automatically resize all photos to 640 x 480 first before you use them to upload to the boxes.

I hope this will help.

For now, just continue the application assuming that the photos will be small. I consider that to be well done. When you have time, study IMagick

August 10: Picture sizes

Most digital cameras allow the user to take photos in these sizes (in pixels)

640 x 480
1600 x 1200 (most popular size)
2048 x 1536
2592 x 1944

It is the ratio between the width and height which is important when resizing

You can see that it is almost 4:3 ratio

So if you do not want the photo to stretch, when you design the BOX,

always make the BOX 4:3

width of box is 4
height of box is 3.

It will work all the times.

I hope this help. Try this immediately and you will see.