PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Imagick
/
Commands
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Commands\AbstractCommand; class FlipCommand extends AbstractCommand { /** * Mirrors an image * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { $mode = $this->argument(0)->value('h'); if (in_array(strtolower($mode), [2, 'v', 'vert', 'vertical'])) { // flip vertical return $image->getCore()->flipImage(); } else { // flip horizontal return $image->getCore()->flopImage(); } } }
[-] 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]