This is a really simple plugin, but one that has cleaned up my templates hugely. Hopefully someone might find it useful.
Basically, instead of having to know your image path, you just throw in some HTML that may or may not contain images and dd_autothumb finds the images, creates thumbnails, and returns the HTML or CSS to place them. All in one step. Great for existing content you don’t want to have to restructure.
This snippet would create and place an IMG 180px wide showing the first pic from the {body}.
{exp:dd_autothumb pic="first" width="180" thumbtype="inline"}
{body}
{/exp:dd_autothumb}
Thanks Steven, this is just what I need. However I’m getting an error:
Notice: Undefined variable: fetch in /myserverpath/plugins/pi.dd_autothumb.php on line 47
Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/Z6WpLZhCAsc.) is not within the allowed path(s): (/myserverroot) in /myserverpath/plugins/pi.dd_autothumb.php on line 170
Notice: Undefined variable: fetch in /myserverpath/plugins/pi.dd_autothumb.php on line 47
Am I missing something?
this plugin is great and exactly what i am looking for. unfortunately some things are missing for me:
relative scaling (just want to enter the width and get the right proportions back in the thumbnail)
and the option to put thumbnails in a specific directory
anyway - thank you so far! keep on R.
also waiting for the multi image result to use lightbox
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.