Bad results at Google speed test

时间:2015-07-31 19:39:26

标签: php image

So I have a Pinterest like website that allows users to upload images. When the image is uploaded I'm resizing it with this code:

imagejpeg($image, $hey, 10);

This resizes my images to an average of 180KB. If I go lower than 10 in my code the images look really bad. Google gives a grade of 30 in the speed, and I don't understand why? am I resizing the images in the wrong way? The dimensions are kept the same since on image click a popup opens that shows the real image dimensions

0 个答案:

没有答案