Download the PHP package coldume/imagecraft without Composer

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

Imagecraft

Build Status

Imagecraft is a reliable and extensible PHP image manipulation library. It can edit and compose images in multiple layers and supports watermark, resize and text. Furthermore, it keeps GIF animation, optimizes memory usage, catches memory exhausted error, and gives an user-friendly/translated feedback.

Imagecraft is intended to be an image abstraction & manipulation layer, which offers a PDO-like API. It currently supports GD extension, and will support ImageMagick in version 2.0. If you have any suggestions, comments or feedback, let me know. Thanks.

Requirement

Installation

Composer is the recommended way to install Imagecraft, simply add a dependency to your project's composer.json file:

`

Or, you can install from an archive file: imagecraft_1.0.4.zip

Usage

Provide the User with a Hint on What He Needs to Upload

``

Build an Image in Fluent Pattern

  1. Client uploads an image from URL.
  2. Server performs resize and watermark operations.
  3. Server returns a message in English if an error occured, such as data size exceeds allowable limit (2MB), timeout expired (20s), file not found, etc.

``

Fluent Pattern Output

Build an Image in Classic Pattern

  1. Client uploads an image directly.
  2. Server performs thumbnail and text operations.
  3. Server returns a message in traditional Chinese if an error occured.

``

Classic Pattern Output

When Debugging is Easier than Expected

``

Cheat Sheet

Options

Name Default Available Description
engine php_gd php_gd image library to be used
cache_dir n/a n/a project-specific cache directory
debug true true, false debug mode of your project
locale en en, zh_TW, .. error message language
jpeg_quality 100 [0, 100] quality of the JPEG image
png_compression 100 [0, 100] compression level of the PNG image
memory_limit -10 [-∞, ∞] maximum memory to use in MB
gif_animation true true, false whether to maintain the GIF animation
output_format default jpeg, png, .. output image format

Layers

Method Compatible
http(Hint$url,Hint$dataLimit = -1,Hint$timeout = -1) BackgroundLayer, ImageLayer
filename($filename) BackgroundLayer, ImageLayer
contents($contents) BackgroundLayer, ImageLayer
resize($width, $height,Hint$option = 'shrink') BackgroundLayer, ImageLayer
move($x, $y,Hint$gravity = 'center') ImageLayer, TextLayer
font($filename,Hint$size = 12, $color = '#FFF') TextLayer
label($label) TextLayer
angle(Hint$angle) TextLayer
lineSpacing($lineSpacing) TextLayer
box(arrayHint$paddings,Hint$color = null) TextLayer

Tips

  1. In addition to the default English error message, Imagecraft can be switched to other languages. You can help with existing translations or to add another language. The translation files are located at:

Resources


All versions of imagecraft with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
coldume/imc-stream Version ~1.0
coldume/translated-exception Version ~1.0
symfony/event-dispatcher Version ~2.4
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 coldume/imagecraft contains the following files

Loading the files please wait ....