PHPackages                             lasyntez/image-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. lasyntez/image-factory

ActiveLibrary[Image &amp; Media](/categories/media)

lasyntez/image-factory
======================

Image manipulation in a simple way by using wrappers to handle the Imagine library

08PHP

Since Mar 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/laSyntez/ImageFactory)[ Packagist](https://packagist.org/packages/lasyntez/image-factory)[ RSS](/packages/lasyntez-image-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ImageFactory
============

[](#imagefactory)

[![DUB](https://camo.githubusercontent.com/17e9757cbb55c60de819f19cd32613d4fc879fe79b5e6d9e8fbbb534328adee2/68747470733a2f2f696d672e736869656c64732e696f2f6475622f6c2f766962652d642e737667)](./LICENSE.md)

Based on the [Imagine](https://github.com/avalanche123/Imagine) library, ImageFactory provides wrappers allowing image manipulation in a simple way.

### Requirements

[](#requirements)

- PHP 5.3+
- Imagine's ones

### Installation

[](#installation)

```
 $ composer require lasyntez/image-factory

```

### Basic usage

[](#basic-usage)

AndroidBitmapGenerator is the wrapper that allows Android developers to generate bitmaps of every density (mdpi - hdpi - xhdpi - xxhdpi - xxxhdpi) on the fly just by providing the original image path. Two drivers are supported GD (by default) and Imagick. The Imagick driver seems to be more efficient when the output format is png but multiple combinations are possible to optimize the output.

```
