public function toPNG() { if (Validator::isResource($this->imageResource)) { throw new RuntimeException(); } imagepng($this->imageResource); imagedestroy($this->imageResource); }
public function toPNG() { if (Validator::isResource($this->imageResource)) { throw new RuntimeException(); } imagepng($this->imageResource); imagedestroy($this->imageResource); }