Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.