Recent Changes · Search:

Support the Project

Wikipublisher

PmWiki

edit SideBar

 

This recipe addresses Issue 00076, for sites using the cookbook add-on minimage to resize uploaded images. Generating pages with Wikipublisher ignores all images written as Img:file.jpg (or Img:600*800*file.jpg).

To fix this, add the following code to local/config.php, after loading the wikipublisher extensions:

    if ($format=='pdf')
        Markup('pdfImg', '<Img',
                    '/Img:(\d+\*\d+\*)?(.*?)\.(jpg|gif|png)/',
                    'Attach:$2.p.$3');

This tells Wikipublisher to use the bigger (higher resolution) .p image, which it will resize as necessary, under control of the imagesize meta type.

Contributors: John Rankin and Stefan?, Friday, 4 April 2008.

« Hide Text in PDF or HTML | Cookbook | Links Between Books »

Creative Commons License
Edit · History · Print · Recent Changes · Search · Links
Page last modified on 04 April 2008 at 01:43 PM