示例#1
0
 protected function compression($DigShear, $PHPconfig, $w, $h, $type, $strtype, $JSconfig)
 {
     require 'zip_img.php';
     $arrimg = $this->CreateArray($PHPconfig, $JSconfig, $strtype);
     if (!$arrimg) {
         return false;
     }
     $zip_photo = new zip_img(array("dest" => $DigShear, "water" => $PHPconfig["water"], "water_scope" => $PHPconfig["water_scope"], "w" => $w, "h" => $h, "type" => $type, "strtype" => $strtype, "zip_array" => $arrimg));
     return $zip_photo->run();
 }
示例#2
0
 protected function compression($DigShear, &$PHPconfig, &$JSconfig, $type, $GdFun)
 {
     require 'zip_img.php';
     $arrimg = $this->CreateArray($PHPconfig, $JSconfig);
     if (count($arrimg[1]) < 1) {
         $this->erro = "系统没有检测到处理截图的命令!";
         return false;
     }
     $arrimg[0] and $arrimg[0] = $PHPconfig["water"];
     $zip_photo = new zip_img(array("dest" => $DigShear, "GdFun" => $GdFun, "quality" => isset($PHPconfig["quality"]) ? $PHPconfig["quality"] : false, "force_jpg" => isset($PHPconfig["force_jpg"]) && $PHPconfig["force_jpg"], "water" => $arrimg[0], "water_scope" => $PHPconfig["water_scope"], "w" => $JSconfig["IW"], "h" => $JSconfig["IH"], "type" => $type, "zip_array" => $arrimg[1]));
     return $zip_photo->run($this);
 }