GithubHelp home page GithubHelp logo

hsnmsri / pixel_php Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

Elevate your web's visuals! Pixel: PHP toolkit for effortless image resizing, compression, and quality optimization. Boost site speed and user experience with this lightweight solution.

License: Other

PHP 100.00%
image image-processing php-image-processor php-image-resizer php-image-watermarker php-images pixel

pixel_php's Introduction

Pixel

Optimize and enhance your web application's image performance effortlessly with Pixel, a powerful PHP toolkit for resizing, compressing, and optimizing image quality. Boost your site's loading speed and user experience by seamlessly integrating our efficient image processing functions. Whether you're a developer or a website owner, Pixel simplifies the complex task of image optimization, ensuring your visuals look stunning without compromising performance. Elevate your website's speed and aesthetics with this lightweight and easy-to-use PHP image processing solution.

Installation

You can install Pixel PHP via Composer:

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.

Pixel::resizeImage(imagePath,resizedImagePath,newWidth, newHeight, createPathIfNotExists = false)

Features

  • Resize images with specified dimensions.
  • Support for both local file paths and URLs.
  • Option to create the destination directory if it doesn't exist.
  • 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.

Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists = false)

Features

  • 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.

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.

pixel_php's People

Contributors

hsnmsri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.