Download the PHP package shekarsiri/simpleimage without Composer

On this page you can find all versions of the php package shekarsiri/simpleimage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package simpleimage

The SimpleImage PHP class

By Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/)

Dual licensed under the MIT / GPLv2 licenses

Overview

This class makes image manipulation in PHP as simple as possible. The examples are the best way to learn how to use it, but here it is in a nutshell:

The two lines inside the try block load image.jpg, flip it horizontally, rotate it 90 degrees clockwise, shrink it to fit within a 320x200 box, apply a sepia effect, convert it to a GIF, and save it to result.gif.

With this class, you can effortlessly:

Requirements

This class requires PHP 5.3 and PHP GD library.

Laravel Installation

Laravel Usage

Usage

Loading

You can load an image when you instantiate a new SimpleImage object:

Or you can create empty image 200x100 with black background:

Saving

Images must be saved after you manipulate them. To save your changes to the original file, simply call:

Alternatively, you can specify a new filename:

You can specify quality as a second parameter in percents within range 0-100

Converting Between Formats

When saving, the resulting image format is determined by the file extension. For example, you can convert a JPEG to a GIF by doing this:

Stripping EXIF data

There is no built-in method for stripping EXIF data, partly because there is currently no way to prevent EXIF data from being stripped using the GD library. However, you can easily strip EXIF data simply by loading and saving:

Method Chaining

SimpleImage supports method chaining, so you can make multiple changes and save the resulting image with just one line of code:

You can chain all of the methods below as well methods above. (You cannot chain the constructor, however, as this is not supported by PHP.)

Error Handling

SimpleImage throws exceptions when things don't work right. You should always load/manipulate/save images inside of a try/catch block to handle them properly:

Method Examples

Most methods have intelligent defaults so you don't need to pass in every argument. Check out SimpleImage.class.php for required/optional parameters and valid ranges for certain arguments.

Utility Methods

The following methods are not chainable, because they return information about the image you're working with or output the image directly to the browser:

Change Log

2013-07-08: Version 2.3 (by Nazar Mokrynskyi)
Differences from Version 2.1
2013-07-08: Version 2.2 (by Nazar Mokrynskyi)
Differences from Version 2.1
2013-07-07: Version 2.1 (by Nazar Mokrynskyi), a lot of refactoring and new features
Differences from Version 2
2013-06-03: square_crop was replaced with smart_crop, which supports varying width/height as well as squares. Simply swap out square_crop with smart_crop to update.
Differences from Version 1

SimpleImage has been completely overhauled since version 1. Here are the most significant changes:


All versions of simpleimage with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shekarsiri/simpleimage contains the following files

Loading the files please wait ....