Quote from: blaize at Oct 09, 2009, 11:37 AM
That is how i got it to work, but I’m not sure if it’s 100% correct usage ;-)
so please do not consider it as genuine instructions.
1. Copy easyphpthumbnail.class.php file to assetes/plugins/tvimageresizer.
2. Create plugin TVimageResizer and copy content of txt file.
3. In plugin edit mode/plugin configuration paste sth like this:
&th_width=Max.width;int;150 &th_height=Max.height;int;110 &prefix=prefix;int;_t
4. In plugin edit mode/system events tab - check both: OnDocFormRender, OnBeforeDocFormSave.
5. Save - and now edit your document with a proper template/TV.
This way I got what screen capture shows on plugin’s download page.
I do not know how to use round corners, watermark.
Thanks for making this post.
I followed your instructions and got very close to the output I was hoping for.
To get the whole thing working, first make sure you are using ’Evolution’. Download the Beta version (1.7) of the TVimageresizer pluging that is on the foot of Andchir’s post (about 2 posts up).
Then do the following:
1. Copy easyphpthumbnail.class.php file to assetes/plugins/tvimageresizer.
2. Create plugin TVimageResizer and copy content of txt/php file.
3. Toggle to the plugin configuration tab and paste this:
&th_width=Width;int;150 &th_height=Height;int;110 &prefix=Prefix;string;t_ &rcorner=Corners percentage of clipping;int;0 &watermark=Watermark image path (png);string;0 ©righttext=Copyright text;string;0 &quality=Quality;int;85
3.1 - Press the ’update parameter display’button and the fields (width, height, prefix, corners, watermark path, copyright text, and quality appear.
3.2 - this is the important bit - the plugin renders these settings globally, ie. to every image you upload - you cant change the parameters on each image you upload, as I understand it. So, add your copyright info, image resizing, corner percentage here. Copyright info wont appear if it is left as 0 - chnage it to any other value and it will be added to the image.
3.3 - if you leave image width and height parameter blank (set to 0), you have more flexibility in terms of resizing it - you CAN adjust the sizes on the resource editing page.
4. Click system events tab and check both: OnDocFormRender, OnBeforeDocFormSave.
4.1 Save the plugin
5. Creat a templatevariable (TV) of your choice and make sure you set the input type to ’image’.
5.1. Assign your template variable to the template you want to upload images to.
6. Edit the page, and browse for an image that you want to resize. Upload the pic - change the image dimensions using the checkbox and the two boxes.
7. Press SAVE.
8. Now if you go back to the the image upload form, you should see two images - one is the original image, the other is a thumbnail image with the rounded corners and copyright info, etc. The thumbnail has a prefix on it (which is t_ by default).
i hope this helps people who are a bit lost on how to do this. good luck!
Dan