Jump to content

Archived

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

angel1987

Is there any programming standards for resizing images in PHP?

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.

Share this post


Link to post
Share on other sites

I was under the impression people used CSS to resize images.

 

1. Upload original sized image

2. Use CSS (Width: 999px; Height: 999px;)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I am agree with requinix, if you want to re-size huge image than ImageMagick is batter than css.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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