Page 1 of 1

auto picture resize

Posted: Sat Mar 26, 2005 6:05 am
by kwickcut
Hello all i am very new to this game and i am haveing a problem with my site. i have just opened a site wear you can upload listings and pictures. the problem is that is the picture is over the max amount i have set, it allows ya to upload the pic but you do not see it. once it is done all ya see is a box with a red x in it. is there a plug in that the users can download so that when they mke a post there picture will auto resize to the max amount allowed by the site if it is over the max amount. this is a php site i really need help i ahve been trying to find a fix for this for 3 weeks now and i am ready to do i dont know what lol if you need please take a look for yourself and please please tell me what i need to do to fix this thanks in advance mysite



kwick

Posted: Thu Mar 31, 2005 2:00 pm
by HaraldHeim
Better get a image editing tool (a free one is available at www.irfanview.com), open the image, resize it and save it again. That's how it is usually done.

Posted: Thu Apr 21, 2005 4:46 am
by kwickcut
thanks for the reply :D but what i was looking for was an auto resizer.. so that when a person uploads the picture the size will be detected and if needed the picture will be resized to the size that is set on the server. thanks



kwick

Posted: Thu Apr 21, 2005 8:58 am
by HaraldHeim
To do that you need to run a program on the server that resizes the image. A free package that can do that on Linux servers is netpbm. If your server runs under Windows, you need another software.

Posted: Thu Apr 21, 2005 9:05 pm
by kwickcut
thanks i am running linux i will install that program and give it a go thanks so much!!!!!!!!!! :D :D :D



kwick

Posted: Thu Apr 21, 2005 11:31 pm
by HaraldHeim
I think you need to write a php script or other script to control netpbm.