![]() For example, I've got a test image that is 2.3MB, and 1331x1331 in dimension, and I'd like the code to size it down, which I'm guessing will dramatically compress the file size of the image, too. php resize image on upload Ask Question Asked 9 years, 9 months ago Modified 5 months ago Viewed 163k times 38 I got a form where the user is inserting some data and also uploading an image. So far, I've got images uploading successfully, filetypes being recognized and names cleaned up, but I'd like to add the resize functionality into the code. PHP library to resize, scale and crop images. Change language: Submit a Pull Request Report a Bug imagejpeg (PHP 4, PHP 5, PHP 7, PHP 8) imagejpeg Output image to browser or file Description ΒΆ imagejpeg ( GdImage image, resourcestringnull file null, int quality -1 ): bool imagejpeg () creates a JPEG file from the given image. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |