Unstoppable Domains

Image resizing issue

Spaceship Spaceship
Watch

Zeeble

New.Net Destroyer....Established Member
Impact
17
Hi everyone,

I'm currently having a bit of an issue. I create websites with content management systems for people who have very basic computer knowledge.

So currently, when they try to upload images to our photo gallery, they tend to be enormous (several thousand px and several MB).

Now I know that gallery scripts can (and ours does) create a new file automatically serve as a thumbnail, but is it also possible to create a script which will create another image automatically for the enlarged image (without image distortion) and discard of the original, enormous image?

Thanks very much for your help guys.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
If your preserve aspect ratio of the uploaded images you can generate a new image with some specified height or width parameter with help of PHP.

If you don't want to do sizing stuff then you can just save it with PHP code and it will save it in that format but it will reduce the filesize as much as it can. You might also need to supply the amount of quality you want to preserve as a parameter.
 
0
•••
One method you might want to try is GD. PHP has some built in image manipulation functions, although GD is helpful for advanced image manipulation. Using GD would enable watermarks, resizing, etc.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back