Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Image.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace webvimark\image;
namespace uzzielpelawak\image;

use webvimark\image\Kohana\Kohana_Image;
use uzzielpelawak\image\Kohana\Kohana_Image;

abstract class Image extends Kohana_Image {}
?>
6 changes: 3 additions & 3 deletions Kohana/Image/GD.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace webvimark\image\Kohana\Image;
namespace uzzielpelawak\image\Kohana\Image;

use webvimark\image\Image;
use webvimark\image\Kohana\Kohana_Image;
use uzzielpelawak\image\Image;
use uzzielpelawak\image\Kohana\Kohana_Image;
use yii\base\ErrorException;
/**
* Support for image manipulation using [GD](http://php.net/GD).
Expand Down
6 changes: 3 additions & 3 deletions Kohana/Image/Imagick.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace webvimark\image\Kohana\Image;
namespace uzzielpelawak\image\Kohana\Image;

use Imagick;
use ImagickPixel;
use webvimark\image\Image;
use webvimark\image\Kohana\Kohana_Image;
use uzzielpelawak\image\Image;
use uzzielpelawak\image\Kohana\Kohana_Image;
use yii\base\ErrorException;
/**
* Support for image manipulation using [Imagick](http://php.net/Imagick).
Expand Down
6 changes: 3 additions & 3 deletions Kohana/Kohana_Image.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace webvimark\image\Kohana;
namespace uzzielpelawak\image\Kohana;

use webvimark\image\Image;
use uzzielpelawak\image\Image;
use yii\base\ErrorException;
/**
* Image manipulation support. Allows images to be resized, cropped, etc.
Expand Down Expand Up @@ -54,7 +54,7 @@ public static function factory($file, $driver = NULL)
}

// Set the class name
$class = 'webvimark\image\Kohana\Image\\'.$driver;
$class = 'uzzielpelawak\image\Kohana\Image\\'.$driver;

return new $class($file);
}
Expand Down
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Uzziel Pelawak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
php composer.phar require --prefer-dist webvimark/image "*"
php composer.phar require --prefer-dist uzzielpelawak/image "*"
```

or add

```
"webvimark/image": "*"
"uzzielpelawak/image": "*"
```

to the require section of your `composer.json` file.
Expand All @@ -31,7 +31,7 @@ In your config/web.php
...

'migrations'=>[
'class'=>'webvimark\modules\migrations\MigrationModule'
'class'=>'uzzielpelawak\modules\migrations\MigrationModule'
],

...
Expand All @@ -45,7 +45,7 @@ In you config/console.php

'controllerMap'=>[
'migrate'=>[
'class'=>'webvimark\modules\migrations\components\MigrateController',
'class'=>'uzzielpelawak\modules\migrations\components\MigrateController',
],
],

Expand All @@ -58,5 +58,5 @@ Usage
-----

```php
\webvimark\image\Image::factory($pathFromFile)->resize(500, 300)->save($pathToFile);
\uzzielpelawak\image\Image::factory($pathFromFile)->resize(500, 300)->save($pathToFile);
```
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "webvimark/image",
"name": "uzzielpelawak/image",
"description": "Kohana image lib wrapper for yii 2",
"autoload": {
"psr-4": {
"webvimark\\image\\": ""
"uzzielpelawak\\image\\": ""
}
}
}