Download the PHP package spacecatninja/imager-x-imageboss-transformer without Composer

On this page you can find all versions of the php package spacecatninja/imager-x-imageboss-transformer. 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 imager-x-imageboss-transformer

ImageBoss transformer for Imager X

A plugin for using ImageBoss as a transformer in Imager X.
Also, an example of how to make a custom transformer for Imager X.

Requirements

This plugin requires Craft CMS 5.0.0-beta.1 or later, Imager X 5.0.0-beta.1 or later, and an account at ImageBoss.

Usage

Install and configure this transformer as described below. Then, in your Imager X config, set the transformer to imageboss, ie:

Transforms are now by default transformed with ImageBoss, test your configuration with a simple transform like this:

If this doesn't work, make sure you've configured a defaultProfile, have a profile with the correct name, and that the source is set up to use the same buckets that you assets are on.

Cave-ats, shortcomings, and tips

This transformer only supports a subset of what Imager X can do when using the default craft transformer. All the basic transform parameters are supported, with the following exceptions:

To pass additional options directly to ImageBoss, you can use the transformerParams transform parameter and pass them in using an options object. Example:

For more information, check out the ImageBoss documentation.

Installation

To install the plugin, follow these instructions:

  1. Install with composer via composer require spacecatninja/imager-x-imageboss-transformer from your project directory.
  2. Install the plugin in the Craft Control Panel under Settings > Plugins, or from the command line via ./craft plugin/install imager-x-imageboss-transformer.

Configuration

You can configure the transformer by creating a file in your config folder called imager-x-imageboss-transformer.php, and override settings as needed.

profiles [array]

Default: []
Profiles are usually a one-to-one mapping to the image sources you've created in ImageBoss. Which in turn will often map to a Volume in your Craft setup. You set the default profile to use using the defaultProfile config setting, and can override it at the template level by setting profile in your transformerParams.

Example profile:

Each profile takes three settings:

sourceName: This is the "Source Name" you selected in ImageBoss.

signToken: If you've enabled signed URL's for security, add your sign token here.

useCloudSourcePath: If enabled, Imager will prepend the Craft source path to the asset path, before adding it to the ImageBoss URL. This makes it possible to have one ImageBoss source pulling images from many Craft volumes when they are for instance on the same S3 bucket, but in different subfolder. This only works on volumes that implements a path setting (AWS S3 and GCS does, local volumes does not).

defaultProfile [string]

Default: ''
Sets the default profile to use (see profiles). You can override profile at the transform level by setting it through the transformParams transform parameter. Example:

enableCompression [bool]

Default: true
Set to falseto disable ImageBoss' default auto compression that delivers WebP automatically when the browser supports it.

enableProgressive [bool]

Default: true
Set to falseto disable ImageBoss' default behavior that delivers progressive JPEG's when possible.

enableAutoRotate [bool]

Default: true
Set to falseto disable ImageBoss' default behavior that uses EXIF data in the image to auto rotate it.

Price, license and support

The plugin is released under the MIT license. It requires Imager X, which is a commercial plugin available in the Craft plugin store. If you need help, or found a bug, please post an issue in this repo, or in Imager X' repo (preferably).


All versions of imager-x-imageboss-transformer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
craftcms/cms Version ^5.0.0-beta.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 spacecatninja/imager-x-imageboss-transformer contains the following files

Loading the files please wait ....