Comments on: Upload image and create thumbnail using PHP https://www.codexworld.com/upload-image-create-thumbnail-using-php/ Web & Mobile App Development Company Tue, 08 Aug 2023 14:22:34 +0000 hourly 1 By: Alfred Jones https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-238640 Tue, 08 Aug 2023 14:22:34 +0000 https://www.codexworld.com/?p=379#comment-238640 Your code works perfectly. Thank you so much. Keep posting more content. We learn a lot from you.

]]>
By: Leonardo https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-108112 Thu, 26 Mar 2020 23:15:52 +0000 https://www.codexworld.com/?p=379#comment-108112 thanks for the tutorial I wonder if you can generate another image in webp format in this same code as it would be?

]]>
By: HALASHOW https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-87082 Tue, 11 Jun 2019 09:31:10 +0000 https://www.codexworld.com/?p=379#comment-87082 Hope this perfect script have Imagick version..

]]>
By: Scott https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-60770 Sat, 04 Aug 2018 01:00:22 +0000 https://www.codexworld.com/?p=379#comment-60770 The code works great but can you tell me how I can keep png files from having a black background after uploading?
Thanks,

]]>
By: Shahmy https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-54401 Mon, 26 Feb 2018 08:41:24 +0000 https://www.codexworld.com/?p=379#comment-54401 Hi, Thanks for your script… Its worked perfectly for me

]]>
By: blackrabbit https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-54246 Tue, 20 Feb 2018 13:12:25 +0000 https://www.codexworld.com/?p=379#comment-54246 Perfect! Thanks!

]]>
By: Aron https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-27167 Tue, 24 May 2016 12:20:25 +0000 https://www.codexworld.com/?p=379#comment-27167 Maybe a dumb question but how can I use it for multiple image upload?
I modified this:(added multiple)
But uploads only just the last photo. What am I missing?

]]>
By: J. Collins https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-10790 Mon, 27 Jul 2015 05:52:23 +0000 https://www.codexworld.com/?p=379#comment-10790 Excelent PHP script!

I will make a contribution to the code, add the following line:

$thumb_height = ($thumb_width/$width) * $height;

after:

list($width,$height) = getimagesize($upload_image);

and the thumbnail will keep your aspect ratio.

]]>
By: Chassidy https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-1486 Thu, 12 Feb 2015 05:25:30 +0000 https://www.codexworld.com/?p=379#comment-1486 Pretty excellent website thanks so much for your personal time in writing the posts for all of us to learn about.

]]>
By: openvz https://www.codexworld.com/upload-image-create-thumbnail-using-php/comment-page-1/#comment-639 Sat, 10 Jan 2015 17:58:32 +0000 https://www.codexworld.com/?p=379#comment-639 Hello, it is fantastic man.

]]>