Gossamer Forum
Home : Products : DBMan : Customization :

Upload Mod- Can you limit the width and height?

Quote Reply
Upload Mod- Can you limit the width and height?
Hi all,

I am not sure if you can do this with the latest upload mod.. can you limit the width and height of the image that is upload?

say i want the width and height to be no bigger then 200 x 300, and if the submit image is 250 x 324...it will then reject the upload and print the error....

thanks !!



Quote Reply
Re: Upload Mod- Can you limit the width and height? In reply to
Not at the moment. Determining the dimensions of a graphic file is something I'm working on.


JPD
Quote Reply
Re: Upload Mod- Can you limit the width and height? In reply to
What I do is to put in both my help/faq file the size guidelines for graphics. Then again specify the max. byte size and height and width above where they would load their graphic.

Then to be sure to graphic displays within the space provided I added the actual height and width tags in the formatting.

<img src= "$SAVE_DIRECTORY_URL/$file" $pwidth $pheight ALT="$rec{'Title'}" BORDER=0 ALIGN=Middle >

$pwidth and $pheight can be defined in your format.pl, html.pl or .cfg file. Or you can just set the actual size the graphic will be.

Of couse this won't check for the correctness, but it will help to keep your format consistent and their graphic will not appear correctly if not withn the specified guidelines. That's an incentive in itself to follow the rules Smile.

And of course by having all the proper tags for graphics will help them to load faster.

Quote Reply
Re: Upload Mod- Can you limit the width and height? In reply to
thanks LoisC

I guess i will do as u suggested...i the mean time i will have to wait for the thumbnail mod to come out and the new mod from JPD as well....... :)



cheers,

Paul