The basic structure of one of my sites features a simple content area featuring text and an image left aligned next to the text.
Rather than writing the HTML for each image, I need a solution for any content editor to simply browse and upload an image of their choosing.
I can achieved this with Template Variables, but there is one problem - I can’t guarantee that every content editor will always resize an image to the required size before upload, so I want to set a "safety" maximum width and height for those cases. Does anyone have a suggestion for how I can achieve this functionality?
Thanks.
phpThumb is a solution, personnally I use the DirectResize plugin with TVs.
DirectResize looks for the width and/org height attribute to resize your images (depending on which resizing mode you choose), which mean you can just write :
[tt]<img src="[*my_image_tv*]" width="80" />[/tt]
Pretty simple... DirectResize then rewrites the path to the cached resized image.
Works pretty well !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id