Jump to content

Is there any programming standards for resizing images in PHP?


angel1987

Recommended Posts

Hello All, I am creating an image sharing platform for our local community and i need to know if there is any standards for resizing images in PHP?

 

I mean how does bigger image sharing websites like imgur, flickr, etc resize their images? Also, there are already many small PHP scripts/functions available on internet to generate thumbnails or resize images on the go or while uploading, but i am not sure if we can use those for a website focused solely on images, can we?

 

I will have to resize larger dimension images into smaller images while maintaining its quality. I am also aware of ImageMagicks and GDLibrary

 

So, can anybody guide me or give me some information or suggest me on how to go about it? Thanks in advance for advice.

  • 3 weeks later...

If the image is reasonably sized then CSS is much easier. But if the image is huge, like unresized from a digital camera and in the thousandsXthousands, then ImageMagick is definitely better than GD at resizing.

  • 3 weeks later...
  • 4 weeks later...

The problem with resizing on the client, either HTML or CSS, is that you are still downloading the full-size image which takes time. If I'm  going to require thumbnails I prefer to create them on upload then they are available for speedy download and display.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.