Download the PHP package thelia/image-factory-module without Composer

On this page you can find all versions of the php package thelia/image-factory-module. 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 image-factory-module

Image Factory

This module provides an alternative to managing images in Thelia.

Installation

Manually

Composer

Add it in your main thelia composer.json file

Usage

With Smarty

With PHP

Commands

The command image-factory:generate-destination

For generate all images of a specific factory

Or for all factories

With this command, the images already present on the destination paths will not be regenerated. It's possible to force the generation process by adding the option --force.

The command image-factory:reload-factory

For reload all factories in the cache

Configure your factories on your database (table image_factory)

Column Description Type
code The code of the factory Text (Example : "product-medium")
priority Loading priority Integer (Example : 4, Default : 0)
sources A list of sources path Text (Example : " my/path/1 | my/path/2 ")
destination A destination path Text (Example : "images/product/medium")
just_symlink For ignore the processing and create a symlink to the source file. Boolean (Default : 0)
width The width of the destination image Integer (Example : 400)
height The height of the destination image Integer (Example : 400)
quality The quality of the destination image. From 1 to 100 Integer (Example : 90)
background_color The color applied to empty image parts during processing. Use rgb or rrggbb color format Integer (Example : "000000", Default : "FFFFFF")
background_opacity The opacity applied to the background color. From 0 to 100 Integer (Example : 90, Default: 100)
resize_mode If 'exact_ratio_with_crop', the image will have the exact specified width and height, and will be cropped if required. If the source image is smaller than the required width and/or height, you have to set allow_zoom to true, otherwise the generated image will be smaller than required. If 'exact_ratio_with_borders', the image will have the exact specified width and height, and some borders may be added. The border color is the one specified by 'background_color'. If 'none' or missing, the image ratio is preserved, and depending od this ratio, may not have the exact width and height required. Text (Default : "exact_ratio_with_borders")
rotation The rotation angle in degrees (positive or negative) applied to the image. From -180 to 180. The background color of the empty areas is the one specified by 'background_color' Integer (Default : 0)
persist Persist on destination path after the processing Integer (Default : 1)
allow_zoom If true, the factory il allowed to resize an image to match the required width and height, causing, in most cases, a quality loss. If false, the image will never be zoomed. Integer (Default : 0)
imagine_library_code Name of the graphic driver used by the Imagine library (see https://imagine.readthedocs.org) Integer (Default : "gd", Possible : "gd, imagick, gmagick")

Todo


All versions of image-factory-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
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 thelia/image-factory-module contains the following files

Loading the files please wait ....