PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Imagick
/
Commands
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Commands\ExifCommand as BaseCommand; use Intervention\Image\Exception\NotSupportedException; class ExifCommand extends BaseCommand { /** * Prefer extension or not * * @var bool */ private $preferExtension = true; /** * */ public function dontPreferExtension() { $this->preferExtension = false; } /** * Read Exif data from the given image * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { if ($this->preferExtension && function_exists('exif_read_data')) { return parent::execute($image); } $core = $image->getCore(); if ( ! method_exists($core, 'getImageProperties')) { throw new NotSupportedException( "Reading Exif data is not supported by this PHP installation." ); } $requestedKey = $this->argument(0)->value(); if ($requestedKey !== null) { $this->setOutput($core->getImageProperty('exif:' . $requestedKey)); return true; } $exif = []; $properties = $core->getImageProperties(); foreach ($properties as $key => $value) { if (substr($key, 0, 5) !== 'exif:') { continue; } $exif[substr($key, 5)] = $value; } $this->setOutput($exif); return true; } }
[-] InsertCommand.php
[edit]
[-] HeightenCommand.php
[edit]
[-] BlurCommand.php
[edit]
[-] LimitColorsCommand.php
[edit]
[-] ResetCommand.php
[edit]
[-] SharpenCommand.php
[edit]
[-] TrimCommand.php
[edit]
[+]
..
[-] ColorizeCommand.php
[edit]
[-] PixelateCommand.php
[edit]
[-] GammaCommand.php
[edit]
[-] FitCommand.php
[edit]
[-] BrightnessCommand.php
[edit]
[-] InterlaceCommand.php
[edit]
[-] ContrastCommand.php
[edit]
[-] OpacityCommand.php
[edit]
[-] WidenCommand.php
[edit]
[-] InvertCommand.php
[edit]
[-] DestroyCommand.php
[edit]
[-] ResizeCommand.php
[edit]
[-] MaskCommand.php
[edit]
[-] CropCommand.php
[edit]
[-] GetSizeCommand.php
[edit]
[-] GreyscaleCommand.php
[edit]
[-] BackupCommand.php
[edit]
[-] ResizeCanvasCommand.php
[edit]
[-] ExifCommand.php
[edit]
[-] FillCommand.php
[edit]
[-] FlipCommand.php
[edit]
[-] RotateCommand.php
[edit]
[-] PickColorCommand.php
[edit]
[-] PixelCommand.php
[edit]