Yii ?????? ??? ?? ??? ???? ?? ??? ??? ???? ??? PHP ????????. ??? ??? ????? ??? ???????? ?? ???? ????? ? ??? ?????. Yii ?????? ??? ??? ?? ?? ??? ????? ???? ??? ?? ??? ?? ??? ? ????.
Yii ??????? ??? ??? ?? ?? ???? CImageComponent???. ? ?? ??? ?? ??, ???, ??, ???? ?? ?? ?? ?? ??? ?????. ?? ??, ??, ?? ?? ?? ?? ?? ??? ??? ??? ??? ? ????. ? ?? ??? ???? ?? ??? ?? ?????? ?????? ???? ??? ???? ?? ??? ? ????.
?? ????? CImageComponent ?? ??? ???? ???. ?? config/main.php ??? ?? ??? ???? ??? ? ????:
'components' => array( 'image' => array( 'class' => 'CImageComponent', 'driver' => 'GD', ), ),
????? Yii ?????? 'image' ?? ??? ???? GD ????? ????? ?????. ?? Yii ?????? GD ???? ??? Imagick ? Gmagick ????? ?????.
?? ? ?? ???? ??? ?? ??? ???????.
- ?? ??/??
??? ??/??? ???? ????? ??? ? ?? ?? ???? ?????. ??? Yii ?????? ???? ??? ??? ???? ??? ???? ?? ?????.
$imageFile = 'example.jpg'; $imagePath = Yii::getPathOfAlias('webroot.images'). '/' . $imageFile; $options = array( 'width' => 800, 'height' => 600, 'quality' => 100, ); Yii::app()->image->load($imagePath)->resize($options['width'], $options['height'])->save($imagePath, $options['quality']);
????? example.jpg?? ???? ???? 800x600??? ??? ?????. ???? ??? ??? ?? ????. ???? 100?? ?????. ????? ??? ???? ?? ??? ?????.
- ??? ???
? ?? ???? ??? ?? ??? ??????. ?? ??? ??? ???? ??? ????? ???? ?? ???? ???? ??? ?? ?????. ??? Yii ??????? ??? ???? ???? ??? ?? ?? ?????.
$imageFile = 'example.jpg'; $imagePath = Yii::getPathOfAlias('webroot.images'). '/' . $imageFile; $options = array( 'left' => 100, 'top' => 50, 'width' => 500, 'height' => 400, 'quality' => 100, ); Yii::app()->image->load($imagePath)->crop($options['left'], $options['top'], $options['width'], $options['height'])->save($imagePath, $options['quality']);
? ????? "example.jpg"? ??? ?? ??? ???? ??? ?? ?? ???? ??/??? ?????. ????? ??? ???? ?? ??? ?????.
- ??? ??
??? ??? ???? ?? ??? ??? ? ?? ???? ??? ?? ????? ???. ??? Yii ??????? ???? ???? ??? ?? ?? ?????.
$imageFile = 'example.jpg'; $imagePath = Yii::getPathOfAlias('webroot.images'). '/' . $imageFile; $options = array( 'angle' => 90, 'quality' => 100, ); Yii::app()->image->load($imagePath)->rotate($options['angle'])->save($imagePath, $options['quality']);
???? "example.jpg"? ??? ?? ??? ???? 90? ?????. ????? ??? ???? ?? ??? ?????.
- ??? ????
? ?? ?? ?? ??? ??? ????? ???? ????. ?? ???? ?????? ????? ?? ???? ?? ?? ?????. Yii ?????? ????? ???? ??? ?? ?? ??? ??? ????.
$imageFile = 'example.jpg'; $imagePath = Yii::getPathOfAlias('webroot.images'). '/' . $imageFile; $watermarkFile = 'watermark.png'; $watermarkPath = Yii::getPathOfAlias('webroot.images'). '/' . $watermarkFile; $options = array( 'position' => 'bottomright', 'alpha' => 100, 'padding' => 10, ); Yii::app()->image->load($imagePath)->watermark($watermarkPath, $options['position'], $options['alpha'], $options['padding'])->save($imagePath, 100);
? ????? ?? ???? ????? ?? ???? ???? ????? ??? ??? ?????. ?? ????? ???? ??? ?????.
??
?? ???? Yii ??????? ???? ???? ??? ???? ??????. ??? ? ?? ?? ??? ????? Yii ?????? ?? ??, ?? ??, ?? ?? ?? ?? ??? ?????. Yii ?????? ???? ??? ?? ??? ?? ??? ? ????.
? ??? Yii ?????? ??? ??: ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

PHP? ?? ?? ? ???, ??? ??, ??, ?? ?? ??? ?? ??? ?? ??? ?????. ?? ???? ??? ??? ???? ?? ??? ???? ???? ???? ???? ??? ??? ?????. ??? ??? ?????? ??? ?? ??? ???? ?????? ??? ???? ? ????.

Photoshop? ?? ?? ?? ? ?? ???? ??? ?????. 1. ?? ??? ???, ??? ? ?? ??? ??; 2. ??? ?? ?? ???? ?? ?? ??? ??????. 3. ??? ??? ?? ?? ?? ???? ??????. 4. "??"??? ???? ?? ??? ??????. 5. "??? ??"??? ???? ??? ?? ??? ???? ??? ??? ??? ?? ??? ????? ???? ??? ??? ?? ? ? ????.

Laravel? YII? ?? ???? ?? ??, ??? ?? ? ?? ???????. 1. Laravel? ??? ???? ???? ????? Eloquentorm ? Artisan ??? ?? ??? ??? ???? ?? ?? ? ????? ?????. 2.YII? ??? ???? ????, ? ?? ??????? ????, ???? Activerecord ? ?? ???? ????? ??? ?? ??? ????.

Docker? ???? YII ??????? ??????? ???? ???? ??? ?????. 1. Dockerfile? ???? ??? ?? ????? ?????. 2. DockerCompose? ???? YII ?? ???? ? MySQL ??????? ??????. 3. ??? ?? ? ??? ???????. ???? ?? ?? ???? ??? ????? ??? ??? ??? ???? ?? Dockerfile? ?? ??? ?? ??? ???? ?? ?????.

? ?? PHP?? ????? ??? ??? ?? ??? ??? ????. ???? ??? ?? ?????? ?????, ? ?? ?? ? ??? ?? ? ??? ????. PHP? ???? ???? ??? PHP??? GD ?????? ???? ????? ?? ? ????. GD ?????? ???? ???? ??? ??? ???? ??? ????????. GD ?????? ???? ???? ????? ??? ??? ?? ??? ??? ????. $image=imagecreate($width,$height); $width ? $height? ????? ??? ??? ?????. ?? ?? $color=imagecolorallocate($image,$red,$green

??? ??? ???? ???? ???? ??? ??? ????? ??? ??? ? ?????. ??? ?? ????? Python ??? ?? ? ? ?? ??? ??? ??????. Python? ??? ?? ??? ?????? ??? ??? ??? ??? ?? ?? ? ??? ?? ????? ?? ????? ?????. ? ????? ?? Python ??? ?? ????? ???? ??? ????? ?? ??? ???? ? ??? ?? ?? ??? ?????. 1. ??? ?? ??? ??? ???? ???? ???? ?? ??? ??? ???? ??? ??? ??? ?????. ??? ??? ??? ??? ?? ??? ? ?? ??? ?? ? ????. ??? ??: ??? ???

Photoshop? ?? ??? ??, ??, ??? ?? ??, ?? ?? ??, ??? ? ??? ?? ??, ??? ?? ?? ?? ???? ??? ?? ? ?????. 1. ?? ? ?? ?? : ??? "??"??? ?? "???/??"???? "??"??? ???? "??/??"? ???? ????? ?????. 2. ?? ?? ?? ??? ? ??? ??? ?? : "? ?? ?? ?? ??? ???"??? ???? "???"? ???? ?? ?? ??, ??? ???? ???? ??? ??? ???? ?? ??? ??????.

Photoshop? ???? ??? ? ?? ?????? ?? ??? ?? ???? ?? ?????. 1) ?? ???? ?? ?? ? ?? ??? ?? ??? ??? ????? ??? ??? ?? ? ? ??????. 2) ??? ? ???? ???? ???? ????? ??? ?????. 3) ??? ??? ?? ?? ?? ? ??? ??? ??? ?????. 4) ??? ??? ?? ???? ??? ???? ??? ?? ?? ? ????. 5) ?? ??? ???? ??? ?? ? ?? ?? ? ??? ?????.
