Hello. I attached the image to the comment, but the photos themselves are of original size and their weight can be very large. I want to reduce the size of the photo both in weight and in size (approximately 400x400) in php. Who and what can tell?

    3 answers 3

    http://php.net/manual/en/function.imagejpeg.php - quality at 0 and rejoice). And look at the same left image resizing function.

      imagecopyresampled :

      copies and resizes part of the image with resampling

        Here's the info you need: complex image scaling in PHP !