Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 09:47:43 AM

Pages: [1]   Go Down
  Print  
Author Topic: resampling images on the fly  (Read 824 times)
tuxen
Space Explorer
***
Offline Offline

Posts: 6


WWW
« on: September 05, 2002, 02:24:00 PM »

hey all, i was just wondering if any of you have found a good way to resample a image on the fly to a smaller size (ie quality not dimensions). basically i have a site where users upload pictures, but alot of them upload pictures that are 500k+ which is just rediculous. any ideas?

jo
Logged

tuxen

www.gimped.net - the only irc user database
stephan
Guest
« Reply #1 on: September 05, 2002, 04:31:00 PM »

Yes, there is a way to do this,

Goto www.hotscripts.com and then to PHP, then "Scripts and programs", then "image manipulation"

You should find something to suit you in there.

Also, try searching www.php.net for image resize, something (probably quite technical) will come up.

Do you want the resized images to be saved to disk?
Logged
tuxen
Space Explorer
***
Offline Offline

Posts: 6


WWW
« Reply #2 on: September 06, 2002, 08:23:00 AM »

thanks for the reply stephan, i have done a bit of homework on this:

- with php, there is a function copyimageresampled() which is can handle the scaling down of images by lowering the quality, the problem with this is, it requires gd 2.0.1 which is only out in beta version i believe. gd 1.8.4 which pretty much every one else runs seems to be incapable of doing it

- the other method i was thinking is imagemagick, and i could do it through either perl or php, or even through running a shell command if possible, i just wasnt sure if imagemagick was installed

basically i was wondering if anyone else had overcome this problem on LP before..

 "[Smile]"
Logged

tuxen

www.gimped.net - the only irc user database
stephan
Guest
« Reply #3 on: October 04, 2002, 12:45:00 AM »

Imagemagick is installed on certain lunarpages servers.

If you need it, e-mail support@lunarpages.com and ask about moving to a server which supports it.
Logged
stephan
Guest
« Reply #4 on: October 04, 2002, 12:47:00 AM »

While I'm on the subject,

I have a script which does it on my webpage, without imagemagick, unfortunately, I don't know where I got it!

However, it is possible! I am on saturn.lunarpages.com and used to be on neptune.lunarpages.com and had no problems there either.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: