Skip to content

Commit

Permalink
update README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hossein Mansouri committed Jan 17, 2024
1 parent 1ff827b commit 6302f26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ composer require hsnmsri/pixel
```

## Resize image tool
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.

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

## Change image quality tool
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.

```php
Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists = false)
Expand All @@ -34,4 +36,19 @@ Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists =
- Change the quality of JPEG and PNG images.
- Support for both local file paths and URLs.
- Option to create the destination directory if it doesn't exist.
- Error handling with detailed exceptions.

## Compress Image tool
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.

```php
Pixel::changeQuality(imagePath,resizedImagePath,compressionLevel = 9, createPathIfNotExists = false)
```

### Features

- Compress and lower the file size of JPEG and PNG images.
- Lossless compression to maintain image quality.
- Support for both local file paths and URLs.
- Option to create the destination directory if it doesn't exist.
- Error handling with detailed exceptions.

0 comments on commit 6302f26

Please sign in to comment.