angel1987 Posted March 27, 2013 Share Posted March 27, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276212-is-there-any-programming-standards-for-resizing-images-in-php/ Share on other sites More sharing options...
BradlySpicer Posted April 15, 2013 Share Posted April 15, 2013 I was under the impression people used CSS to resize images. 1. Upload original sized image 2. Use CSS (Width: 999px; Height: 999px;) Quote Link to comment https://forums.phpfreaks.com/topic/276212-is-there-any-programming-standards-for-resizing-images-in-php/#findComment-1424894 Share on other sites More sharing options...
requinix Posted April 15, 2013 Share Posted April 15, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276212-is-there-any-programming-standards-for-resizing-images-in-php/#findComment-1424899 Share on other sites More sharing options...
annaharris Posted May 7, 2013 Share Posted May 7, 2013 I am agree with requinix, if you want to re-size huge image than ImageMagick is batter than css. Quote Link to comment https://forums.phpfreaks.com/topic/276212-is-there-any-programming-standards-for-resizing-images-in-php/#findComment-1428863 Share on other sites More sharing options...
Barand Posted June 1, 2013 Share Posted June 1, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276212-is-there-any-programming-standards-for-resizing-images-in-php/#findComment-1433549 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.