Giter Site home page Giter Site logo

antistressstore / image Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spatie/image

0.0 0.0 0.0 10.39 MB

Manipulate images with an expressive API

Home Page: https://freek.dev/684-a-package-to-easily-manipulate-images-in-php

License: MIT License

PHP 100.00%

image's Introduction

Manipulate images with an expressive API

Latest Version on Packagist MIT Licensed GitHub Workflow Status Total Downloads

Image manipulation doesn't have to be hard. Here are a few examples on how this package makes it very easy to manipulate images.

use Spatie\Image\Image;

// modifying the image so it fits in a 100x100 rectangle without altering aspect ratio
Image::load($pathToImage)
   ->width(100)
   ->height(100)
   ->save($pathToNewImage);
   
// overwriting the original image with a greyscale version   
Image::load($pathToImage)
   ->greyscale()
   ->save();
   
// make image darker and save it in low quality
Image::load($pathToImage)
   ->brightness(-30)
   ->quality(25)
   ->save();
   
// rotate the image and sharpen it
Image::load($pathToImage)
   ->orientation(90)
   ->sharpen(15)
   ->save();

You'll find more examples in the full documentation.

Under the hood Glide by Jonathan Reinink is used.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require spatie/image

Please note that since version 1.5.3 this package requires exif extension to be enabled: http://php.net/manual/en/exif.installation.php

Usage

Head over to the full documentation.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards on our company website.

Credits

Under the hood Glide by Jonathan Reinink is used. We've based our documentation and docblocks on text found in the Glide documentation

License

The MIT License (MIT). Please see License File for more information.

image's People

Contributors

adrianmrn avatar akoepcke avatar alexvanderbist avatar allaniftrue avatar backendtea avatar brendt avatar chapeupreto avatar djaiss avatar emielmolenaar avatar enescakir avatar flexelektro avatar freekmurze avatar gummibeer avatar haugen86 avatar ikeedo avatar jackabox avatar krato avatar nielsvanpach avatar nlemoine avatar pascalbaljet avatar pculka avatar pdewit avatar riasvdv avatar rubenvanassche avatar sebastiandedeyne avatar spyrosk avatar synchro avatar trigur avatar vdbelt avatar willemvb 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.