Download the PHP package easygithdev/easygd without Composer

On this page you can find all versions of the php package easygithdev/easygd. 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 easygd

EasyGD

EasyGD is a PHP framework to use GD easier
The frame allows you to easily load images from a file, URL or string.
After loading the image, you can apply transformations.
You can then choose to save the result as a file, either to return a character string, or to send the image directly to the browser.

Installing

Installation is quite typical - with composer:

The header script

You will need to include the autoloader before using the classes.

The basic stuff

In all the examples that follow, the $stream variable is either a URL or a file or a character string.
For example, you can use the PHP logo with the following URL:

PHP Logo

How to load and show an image

In this case, the stream is directly sent to the browser.

How to load and render an image in a HTML tag

You can use the data src property to render the image in the HTML tag.
Use it only on small image, if you dont want that your HTML page becommes to big.

How to load and save an image on disk

In this case, the stream is saved to the browser.

How to load, save and show an image in the same time

How to make multiple save


The other types

Define a dimension

Define a color

Define a position

Define a text

Create your own images

How to create a truetype image


Adding text in the images

How to draw a text into an image

How to draw a string vertically into an image

How to apply an alpha color to a text into an image

How to mix "GD text", "TrueType text", "FreeType text" into an image


Get the informations

How to get the information about an image

How to have the preseted positions

It will return an object Position ...

How to get / add the IPTC tag

Remember IPTC work with JPEG files.


Resizing the images

How to resize an image

How to resize an image by fixing the width or height

How to safetly resize an image

How to make a thumbnail

Croping and Rotation

How to crop an image

How to make a rotation

Merging two images

How to insert a logo into an image

Make thumbnails

Here you can find an example to, easyly, generate some thumbnails.


Filters

Using all the filters with the factory

You can use filters with a common syntax. The factory, use the three types of filters :

You ca use this way to call, preset/convolution/lookuptable filters like this :

Using the preset filter

You can use :

How to create and apply a preset filter

Using the convolution filter

You can use preseted convolution or your own convolution filters.

How to use a preseted convolution

How to use your own convolution

Using the lookuptable filter

You can use preseted lookuptable or your own lookuptable filters.

How to use a preseted lookuptable

To create a new lookuptable filter, you must create a callback method like this :

License

This project is licensed under the MIT License - see the LICENSE file for details


All versions of easygd with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 easygithdev/easygd contains the following files

Loading the files please wait ....