This plugin works like the original PopupImage plugin: it creates inline images with an automatically generated thumbnail and a popup link to the full version. Thumbnails will automatically be stored in the media directory of your blog. If deleted, they will be regenerated the next time somebody tries to look at an item containing an image. You can force an update of your thumbnails simply deleting them.
I've assembled this modification of PopupImage plugin of Till Gerken. While the original plugin use ImageMagick this one works with the NetPBM library, a GPL package that convert from one graphics format to another and do simple editing and analysis of images. The NetPBM library can be installed in any Virtual Host because you don't need to be root for install the precompiled package. Precompiled NetPBM library for many systems are available at the website of Gallery, the famouse image gallery software.
Since 0.8, a new Image (note _I_) skinVar mode is added (by admun). This provides a non-intrusive thumbnail function (against build-in image and popup skinVar). A admin menu is also added to flush the thumbnail.
See the following sessions for each step
Download precompiled NetPBM library for your system.
Extract and upload in a directory of your webspace at least this eight subset of precompiled NetPBM library:
Simply upload these files in your root_dir or in any other dir available from the webserver.
For the popup links to be rendered correctly, you need to change the following settings in your templates (both templates for main page and item page):
Popup Link Code:
<a href="<%rawpopuplink%>" onclick="<%popupcode%>">
Inline Image Code:
<%image%></a>
If Image mode is disable (and the template has changed), all <%image%> will be rewrite as a thumbnail with thumbnail.
If Image skinvar mode is used, in order to insert an image in a post:
The skinvar has the following format: <%Image(filename|popupX|popupY|thumbX|thumbY|comment)%>, left the parameter blank if no value is provided. ie <%Image(file.jpg|1024|768|||my pic)%> (use default thumbnail size)
For advance user only, see the plugin code header for info how to automatically insert the Image tag (need modify to core code…)
PopupImagenetPBM is based on:
– Roberto, mod by Edmond Hui (admun)
NP_PopupImageNetPBM version 0.12 works with Nucleus CMS 3.31 - 2007-10-29 admun