Solution: Creating image alias image variations in PHP

This is compatible with eZ Publish 4.

This is a Stub article. Help the eZ Publish community by expanding it!

About

This is an example solution to generate or remove content object image datatype image alias image variations which do not yet exist within the system.

Example solution: bcimagealias extension

The solution bcimagealias extension is available for download on projects.ez.no/bcimagealias

Calling example script

This script generates or removes all image alias image variation image files in the system per siteaccess. Here is an example of how to call the script.

cd /path/to/ezpublish/;
./extension/ezimagealias/bin/php/bcimagealiases.php --siteacess ezwebin_site_user --generate
cd /path/to/ezpublish/;
./extension/ezimagealias/bin/php/bcimagealiases.php --siteacess ezwebin_site_user --remove

This extension also provides a workflow event and cronjob part to generate all image alias variation images in the system each time called. See INSTALL documentation within the extension.

External Reference

Reference