| « Userlist widget | [plugin] FCKeditor javaScript WYSIWYG RTE editor » |
[plugin] jQuery Imagefit plugin
This plugin will adjust the size of an image to the container it's in. That way an image in a post will not exceed the borders of the post even if it's bigger. You simply install the plugin and it will do it's job. It relies on the image being spanned within a div with class image_block, which will be the case if you use the File Manager to add images to your post or if you use the [IMG] button on the toolbar.
example code:
<div class="image_block"><img src="image.png" alt="some alt text" title="some title" /></div>
This is code that's automatically generated if you insert an image using B2evolution. You can also add it manually to a post.
You might want to adjust the class. You can even use an ID. That's done in the settings of the plugin. You can even add several classes or ID's and it will cater for all of them.
Several images in this blog work with the plugin. You can click all images for a full scale version. That's done with the jQuery lightbox plugin. They work beautifully together.
The plugin is tested in Firefox 3, Opera and Internet Explorer 7.
Download: jquery_imagefit_plugin-0.9.1.zip
Have fun
Trackback address for this post
4 comments

Your plugin is TRULY MAGICAL. :)))

It doesn't seem to work for me...it does shrink it, but it's not proportioned correctly and it does not link to the original size photo. :(

Hi Jen,
hat skin are you using? When i made this plugin it had some troubles adjusting to several skins. I tried to make it compatible but I may have mist a few.
Good luck

What should i do? it doesn't work? please help me. thanks!!