Download the PHP package kaliop/image-bundle without Composer

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

Kaliop Image Bundle

A set of tools for managing image variations in Ibexa DXP.

The bundle extends Ibexa image handling with automatically generated WebP variations, density multiplier variations, focal-point-aware cropping, Fastly Image Optimizer support, Admin UI image variation filtering, and a Twig helper for building srcset attributes.

Compatibility

Bundle line Ibexa Symfony PHP
1.x 4.6 5.4 LTS >= 8.1
2.x 5.0 7.4 LTS >= 8.3

Installation

Install the bundle with Composer:

If the bundle is not registered automatically by your application, add it to config/bundles.php:

Configuration

Create config/packages/kaliop_image.yaml:

Automatically Generated Image Variations

The bundle reads the configured Ibexa image variations and adds extra variations at runtime.

Given this Ibexa image variation:

And this bundle configuration:

The bundle makes the following additional variations available:

The multiplier generator scales integer filter values in both Ibexa-style and LiipImagineBundle-style filter configuration. This allows standard local image variations to be used in the same way as Fastly Image Optimizer variations.

Use ignore_variations_webp and ignore_variations_multipliers to exclude selected base variations from automatic generation.

Focal-Point Thumbnail Filter

The bundle provides a LiipImagineBundle filter loader named thumbnail/focal-point.

It works like the standard thumbnail filter with outbound cropping, but the crop area is calculated around the focal point stored on the Ibexa image field. If the image has no focal point metadata, the image center is used.

Example local image variation:

This generates a 640x360 crop that keeps the configured focal point inside the crop whenever possible.

The filter accepts the same relevant options as thumbnail:

You do not need to pass focal point coordinates manually in configuration. The bundle injects focalPointX and focalPointY from the image field metadata when the variation is generated.

Fastly Image Optimizer Support

When Ibexa Fastly Image Optimizer is installed, this bundle decorates its variation handler and applies the same focal-point behavior to Fastly-generated URLs.

Automatic Fastly WebP and Multiplier Variations

The bundle also extends configured fastly_variations with WebP and multiplier variants.

Given a Fastly variation named card, the same suffixes are generated:

For multiplier variants, the generated Fastly configuration receives the corresponding dpr value. For WebP variants, the generated Fastly configuration receives format: webp.

Focal-Point Crop Option

Fastly crop configuration can use focal-point as the third crop argument:

The bundle converts this value into a Fastly crop rectangle based on the image focal point, then sets the requested width and height query parameters.

If the image has no focal point metadata, the crop is centered.

Admin UI Image Variation Filtering

Use admin_ui.visible_image_variations to limit which image variations are exposed in the Ibexa Back Office image variation configuration, including the RichText editor image selection UI.

This does not remove or disable other image variations. It only hides them from the Admin UI configuration exposed to editors.

Twig srcset Helper

The bundle provides the Twig function kaliop_image_srcset() for generating a srcset value from the configured multipliers.

Signature:

Example:

Example with WebP sources:

For a large variation and multipliers: [1.5, 2], the helper will try to use:

When the fourth argument is true, it will use WebP variation names:

Missing variations are skipped and logged.

Variation Naming Convention

The bundle uses the following naming convention for generated variations:

Examples:

Contribute

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

License

This library is released under the MIT license. See the included LICENSE file for more information.


All versions of image-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-fileinfo Version *
ext-dom Version *
ibexa/core Version ~5.0.0
ibexa/admin-ui Version ~5.0.0
nyholm/psr7 Version ^1.8
guzzlehttp/promises Version ^2.5
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 kaliop/image-bundle contains the following files

Loading the files please wait ...