Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6302f26

Browse files
author
Hossein Mansouri
committedJan 17, 2024
update README.md file
1 parent 1ff827b commit 6302f26

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎README.md

+17
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ composer require hsnmsri/pixel
1111
```
1212

1313
## Resize image tool
14+
Pixel PHP is a lightweight image resizing library for PHP, designed to simplify the process of resizing images while providing flexibility and ease of use.
1415

1516
```php
1617
Pixel::resizeImage(imagePath,resizedImagePath,newWidth, newHeight, createPathIfNotExists = false)
@@ -24,6 +25,7 @@ Pixel::resizeImage(imagePath,resizedImagePath,newWidth, newHeight, createPathIfN
2425
- Error handling with detailed exceptions.
2526

2627
## Change image quality tool
28+
Pixel PHP is a versatile image processing library for PHP, designed to simplify common image operations. The `changeQuality` function allows you to modify the quality of both JPEG and PNG images.
2729

2830
```php
2931
Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists = false)
@@ -34,4 +36,19 @@ Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists =
3436
- Change the quality of JPEG and PNG images.
3537
- Support for both local file paths and URLs.
3638
- Option to create the destination directory if it doesn't exist.
39+
- Error handling with detailed exceptions.
40+
41+
## Compress Image tool
42+
Pixel PHP is a versatile image processing library for PHP, designed to simplify common image operations. The `compressImage` function allows you to compress and reduce the file size of both JPEG and PNG images without significantly lowering the quality.
43+
44+
```php
45+
Pixel::changeQuality(imagePath,resizedImagePath,compressionLevel = 9, createPathIfNotExists = false)
46+
```
47+
48+
### Features
49+
50+
- Compress and lower the file size of JPEG and PNG images.
51+
- Lossless compression to maintain image quality.
52+
- Support for both local file paths and URLs.
53+
- Option to create the destination directory if it doesn't exist.
3754
- Error handling with detailed exceptions.

0 commit comments

Comments
 (0)
Please sign in to comment.