How to use php's imgcompress?

http://www.vephp.com/jiaochen.

I did see this
. He wrote on it, you can check the video
, but my upload code is like this

.

clipboard.png

clipboard.png

require imgcompress.class.php
class?


clipboard.png

clipboard.png


quotes the direct instantiation class, just use it


take a look at the path and so on. It feels like your path is written incorrectly and misled.


isn't there demo in that article

$source = 'test.jpg';
$dst_img = 'test_111.jpg';
$percent = 1;  -sharp
$image = (new imgcompress($source,$percent))->compressImg($dst_img);

just use it this way.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaf2c1-223a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaf2c1-223a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?