ez projects / bcimagealias
| UNIX name | Owner | Status | Version | Compatible with |
|---|---|---|---|---|
| bcimagealias | Brookins Consulting | beta | 0.0.24 | eZ Publish 4.x+ -> eZ Publish 4.6.x+ |
The BC Image Alias extension is now quite stable. We have released stable beta packages of the extension for all eZ Publish users to try at this time.
Report your comments and questions in the project forums.
The BC Image Alias extension is a complete solution for those looking to create or remove eZ Publish content object image attribute 'image alias' image variation image files. BC Image Alias provides extensive documentation within the extension itself.
bcimagealias provides a wide range of tools to help meet these related needs.
Learn more about the features available in our features and use case documentation.
Download extension packages are regenerated at each major package release (check GitHub for the latest version first)
Alternatively, you can also automatically download the latest GitHub sources in tar.gz and zip format.
The latest extension source code is always available on GitHub.
https://github.com/brookinsconsulting/bcimagealias
Please read the README and INSTALL documentation first when getting started.
The documentation is extensive, thorough and verbose. You should have no problem using the extension after reading the documentation and performing a few tests runs of the commands in the USAGE documentation in your preferred development environment.
We suggest first reviewing the disk usage of the image variation directory for a new node which has not yet been viewed on the user siteaccess. This provides a baseline for future comparison after image alias creation.
Next we suggest creating the image alias image variations (using bcimagealias.php script) for the one node mentioned previously. This will basically create the image alias variation images of a single content object.
After running the create image alias command, review the disk usage of the image variation directory for your node, you should find the node's image aliases (image variation image files) created and available normally.
The very best source of examples of how to use this extension are available in our USAGE documentation. Here are just a few of the many usages available ...
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create
This example script command removes all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove
Limitation: This script fetches all content object attributes of all content objects without limit (re: version), this may be a performance concern in some configurations.
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create --related-siteaccesses
This example script command removes all image alias image variations for all siteaccesses. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove --related-siteaccesses
Limitation: This script fetches all content object attributes of all content objects without limit (re: version), this may be a performance concern in some configurations.
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create --node-id=2 --subtree-children --related-siteaccesses
This example script command removes all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove --node-id=2 --subtree-children --related-siteaccesses
Limitation: This script fetches the specified node and all subtree child nodes (and subsequent objects) without limit, this may be a performance concern in some configurations.
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create --node-id=2
This example script command removes all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove --node-id=2
This script fetches all content object attributes of a single content object without limit, this should not be a performance concern in most configurations.
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create--object-id=108
This example script command removes all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove --object-id=108
This script fetches all content object attributes of a single content object without limit, this should not be a performance concern in most configurations.
This example script command generates all image alias image variations per siteaccess. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --create --object-id=108 --related-siteaccesses
This example script command removes all image alias image variations for all siteaccesses. Here is an example of how to call the script.
./extension/bcimagealias/bin/php/bcimagealias.php --remove --object-id=108 --related-siteaccesses
This script fetches all content object attributes of a single content object without limit, this should not be a performance concern in most configurations.
As a stand alone extension, bcimagealias will not negatively affect any other extension or core behavior. This extension builds upon expected system behavior and usage through strong usage of the powerful eZ Publish PHP Kernel API to reduce complexity and increase flexibility.
Images alias variation image files created and stored with this extension are the same as found within default eZ Publish installations without it.
If after using the provided script to generate the alias image variation image files for your site you no longer need to do this again, there is no reason you can not disable and remove it. This in part helps ensure your not dependent on yet another extension, it's your choice on when and how you use it.
This project started as an example published in an article on ezpedia.org in response to requests for a solution to this need.
BC ImageAlias 0.0.24 release available
Monday 31 October 2011 05:12
Brookins Consulting