tdVisualFactoryPlugin - 0.1.0
Provides funcionalities for easy images upload with additional features
You are currently browsing
the website for symfony 1
Provides funcionalities for uploading pictures into separate albums using additional features, such as configurable multiple sizes, watermarks, etc. This plugin is a part of TD CMS and is based on Doctrine ORM.
tdVisualFactoryPlugin is a symfony plugin that provides funcionalities for uploading pictures into separate albums using additional features, such as configurable multiple sizes, watermarks, etc.
This plugin is a part of TD CMF and is based on Doctrine ORM.
|Tomasz Ducin||lead||moc.liamg <<ta>> nicud.zsamot|
Copyright (c) 2009-2010 Tomasz Ducin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Provides funcionalities for uploading pictures into separate albums using additional features, such as configurable multiple sizes, watermarks, etc.
This plugin is a part of TD CMS and is based on Doctrine ORM.
Install the plugin via the subversion repository by executing the following command from the project root directory:
$ svn co http://svn.symfony-project.com/plugins/tdVisualFactoryPlugin/trunk plugins/tdVisualFactoryPlugin
or by using the default symfony plugin install command:
$ ./symfony plugin:install tdVisualFactoryPlugin
You shall redefine the configuration td_visual_factory_sizes array and define custom sizes of uploaded images. Each uploaded image will be stored in the original format and all defined custom sizes.
After defining custom image sizes, you shall create directories storing those specific size images (in the default upload directory, which is uploads/td/images/ and make sure those directories have permissions to write new files in.
The first of all custom image sizes is used as the thumbnail size in admin generator (image album editing with image list).
You can modify settings of the tdVisualFactoryPlugin in the config/tdVisualFactoryPluginConfiguration.class.php file:
td_visual_factory_watermark_dir - (String) upload dir of all watermark images,
td_visual_factory_image_dir - (String) upload dir of all images,
td_visual_factory_sizes - (Array) all image sizes (not counting the original uploaded file),
td_visual_factory_watermark_sizes - (Array) all image sizes (they have to be included in the td_visual_factory_sizes array) that shall be watermarked,
td_visual_factory_watermark_prefix - (String) prefix for intermediate watermarked image creation files. By default it's 'tmp-', so if the file 1ba05c.jpg represents resized and watermarked image, then tmp-1ba05c.jpg is the same image: after resizing, but before putting the watermark on it,
td_visual_factory_size_thumbnail - (String) the size used on the frontend within lightbox widget - as the thumbnail,
td_visual_factory_size_full - (String) the size used on the frontend within lightbox widget - as the zoomed, full size image,
td_visual_factory_mode - (String) external library use within the Visual Factory, can be either gd (GD) or im (Imagick).
At least one of the following graphics libraries: