Skip to content

Commit 625dd26

Browse files
committed
Updated docs #8
1 parent 8a591e9 commit 625dd26

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

readme.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
*Version 1.1*
44

5-
PHP library to convert between **bmp**, **gif**, **jpeg**, **png** and **webp** image files.
5+
PHP library to convert between **gif**, **jpeg**, **png** and **webp** image files.
66

77
## Usage
88

99
### Syntax
1010

1111
```php
12-
convertImage ( string $from , string $to , int $quality )`.
12+
echo \ImageConverter\convert(string $from , string $to , int $quality);
1313
```
1414

1515
### Example
@@ -18,7 +18,10 @@ convertImage ( string $from , string $to , int $quality )`.
1818
<?php
1919
include __DIR__ . '/src/php-image-converter.php';
2020

21-
convertImage('./image.png', './image.webp', 5);
21+
$from = __DIR__ . '/my-image.png';
22+
$to = __DIR__ . '/my-image.webp';
23+
24+
echo \ImageConverter\convert($from, $to);
2225
```
2326

2427
## Notes
@@ -30,6 +33,11 @@ If you try to convert to a path that has not been created, it will try to create
3033
- PHP 7+
3134
- GD (active on almost every server by default)
3235

36+
## Contributors
37+
38+
- [@peter279k](https://github.com/peter279k)
39+
- [@jenstornell](https://github.com/jenstornell)
40+
3341
## Inspiration
3442

3543
- https://github.com/rakibtg/PHP-ImageToWebp

0 commit comments

Comments
 (0)