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
require imgcompress.class.php
class?
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
require imgcompress.class.php
class?
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.