Download the PHP package gumlet/craft-gumlet-imagetransformer without Composer

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

Gumlet Asset Transformer for Craft CMS

Adds Gumlet powered asset transforms to Craft CMS:

  1. Drop-in replacement for Craft CMS native image transforms and .srcset() method
  2. Add additional Gumlet parameters to image transforms
  3. Use Gumlet for CP thumbnails
  4. Allows .pdf files to be rasterized and transformed (unlike Craft CMS transforms)

The only thing you'll need to update is your filesystem Base URL to use your Gumlet domain.

Requirements

This plugin requires Craft CMS 4.0.0 or later, and PHP 8.0.2 or later.

Installation

You can install this plugin with Composer.

Then update your filesystem Base URL to use your Gumlet domain.

Configuration

Copy config.php into Craft's config folder and rename it to gumlet-imagetransformer.php.

Update the gumletDomain config setting with your Gumlet domain.

Usage

This plugin provides multiple ways to generate Gumlet URLs for your images:

  1. Automatic transformer (when configured as default) - Works with asset.setTransform() and asset.url
  2. Twig function - Use gumletUrl() function in templates
  3. Service method - Use craft.gumlet.buildUrl() in templates

Method 1: Using Twig Function (Recommended)

The easiest way to generate Gumlet URLs is using the gumletUrl() Twig function:

Method 2: Using Service Method

You can also use the Gumlet service directly:

Method 3: Using Asset Transforms and Transformation Arrays

If the Gumlet transformer is set as the default, you can use Craft's native transform methods:

Direct Transformation Array Support

You can now also pass a transformation array directly to getUrl, getWidth, and getHeight:

This works for both standard named transforms and custom arrays, and will always generate a Gumlet URL.

Note: The automatic transformer may not always be active depending on your Craft CMS configuration. Using gumletUrl() or craft.gumlet.buildUrl() is more reliable.

Adding Additional Gumlet Parameters

In addition to the standard Craft CMS transform options:

You can also apply additional Gumlet parameters by passing them as the third argument:

Available Gumlet Parameters

Gumlet supports many transformation parameters. Some common ones include:

For a complete list of available parameters, see the Gumlet Image Transformation API documentation.

Note: This plugin uses Gumlet's standard short parameter names (w for width, h for height, q for quality, f for format). These are the default parameter names used by Gumlet's image transformation API.

Mapping

Transform Modes

Craft CMS transform modes are mapped to Gumlet fit parameters:

Position

Craft CMS positions are mapped to Gumlet crop positions:

Support

For issues, questions, or contributions, please visit the GitHub repository.

License

This plugin is licensed under the MIT License. See LICENSE for details.

Credits

Developed by Anshul Bansal


All versions of craft-gumlet-imagetransformer with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.0.0|^5.0.0
php Version ^8.0.2
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 gumlet/craft-gumlet-imagetransformer contains the following files

Loading the files please wait ...