Hi Guys,
bit confused with installing TVimageResizer. I did part 1 and 2 and did part 3
so the entire content in the plugin is:
<?php <--this is in the plugin field by default
require_once MODX_BASE_PATH.’assets/plugins/tvimageresizer/TVimageResizer.inc.php’;
but I have no idea how to configure the plugin i.e where do i put &tv_ids=TV IDs;string; etc...
I did the system events part and in part 4 "specify its (their) ID." has me confused. Is there a specific TVimageResizer id or does this reference an id in a style sheet for styling the image?
My template variable is called using [[*slider_images]] with no issues but I need to have it resized using this plugin. In the TV creation section I use image for input and output.
Could someone offer a sample of applying one of the plugin configurations to [[*slider_images]]
THANKS!!!!!!!!!!
Install:
1. Place folder tvimageresizer to plug-ins folder assets/plugins/.
2. In the manager, open the "Elements" -> "Manage Elements" -> "Plugins" -> "New Plugin".
3. Plugin name:
TVimageResizer
Description:
Plugin for creating miniature copy of pictures of Template Variables (TV - Image).
Code plugin (php):
require_once MODX_BASE_PATH.’assets/plugins/tvimageresizer/TVimageResizer.inc.php’;
Configure plugin:
&tv_ids=TV IDs;string; &dirs=Thumb folders;string;small~medium &width=Width;string;200~400 &height=Height;string;100~200 &rcorner=Corners percentage of clipping;string; &backgroundColor=Background color;string;#FFFFFF &watermark=Watermark image path (png);string; &watermarkPos=Watermark position;string;90% 90% &cprighttext=Copyright text;string; &quality=Quality;int;90 &crop=Cropping;list;yes,no,crop_resized;no &save_o_name=Save only name;list;yes,no;no &rename_images=Rename images;list;yes,no;no
System Events:
OnBeforeDocFormSave
4. Create Template Variable with Input Type - Image. In the plugin configuration, specify its (their) ID.
----------------------------------------------
Configuration:
TV IDs - ID TV, which require the ability to change size (comma separated).
Thumb folders - folder, which will be upload a copy of the picture. You can specify a few through a separator "~" (without the quotes).
Width - the width of the copy of the picture. You can specify a few through a separator "~".
Height - the height of the copy of the picture. You can specify a few through a separator "~".
Cropping - crop images (create exactly to the sizes indicated);
Corners percentage of clipping - rounded corners (the size of the corner in percent);
Watermark image path (png) - watermark (the path to the PNG-image);
Copyright text - to put the text on the picture;
Save only name - remain in the field just the file name of the picture. Can be used to create images with link to the big picture;
Quality - the image quality (compression size).
Background color - цвет фона (учитывается при скруглении углов).
Rename images - переименовывать картинки. Все картинки будут переименовываться с указанием даты: d.m.y_H.i.
----------------------------------------------
Note:
If you want to create a small picture with link to the large, use the Save only name - yes.
Example:
<a href="assets/images/[*image*]" target="_blank"><img src="assets/images/small/[*image*]" width="100" height="100" alt="" /></a>
I cant find this plugin via the Revo package manager?
Is this an old plugin for EVO?
Are you looking for phpthumbof? Might be worth investigating if that will do what you are trying to achieve.
Hi,
I tried phpthumbof too but it wouldn’t work. Issues flagged with having modx installed in subfolder by other users. Apparently it woks fine if ur site is in the root
Thanks