PDA

View Full Version : Reject large images


Collectors
09-10-2005, 12:04 AM
I know there are a lot of hacks to resize large images. I heard that this is stressfull for the server.

I was wondering if it's possible to reject large images.

Example: The max size of an image on my board is 700px. If a user wants to link an image from another location that is 1000px it gives an error message.

Is this possible and would this option be less stressfull for the server?

Collectors
09-15-2005, 09:47 AM
Anybody?

Chris M
09-15-2005, 12:48 PM
There are some PHP.net functions to get the image size of an image - You could then just reject the image if it exceeds the dimensions you specify :)

http://uk.php.net/manual/en/function.getimagesize.php

Satan

bigcurt
09-15-2005, 04:44 PM
This sounds like it would be perfect for you https://vborg.vbsupport.ru/showthread.php?t=63458&highlight=messing+design



~curt