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.

Developers

License

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.

Usage

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).

Configuration

You can modify settings of the tdVisualFactoryPlugin in the
config/tdVisualFactoryPluginConfiguration.class.php 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).

To use the activate/deactivate AJAX interface in the backend td_image_album
module, remember to enable the graphics module of the tdCorePlugin
inside your settings.yml file (see tdCorePlugin README).