Hi.
In a admin side of a script I've to implement
a system that upload an image apply it
a watermark and save it (of course 😉 )
in two sizes (thumb and large)
public function move(){
if(!is_uploaded_file($this->tmp_name)){
throw new InvalidArgException('Possible file upload attack: filename '.$this->tmp_name);
}
//waterMark($width,$height,$fontSize,$path,$fileName);
$this->waterMark(200,200,20,'thumb',$this->tmp_name);
$this->waterMark(600,600,40,'img',$this->tmp_name);
}
Is it a good way ?
Bye.