Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

AddImageType

Summary: Add new image type extension
Version:
Prerequisites: This recipe was last tested on PmWiki version: 2.1beta20; this recipe requires at least PmWiki version: 2.0 and no other recipes.
Status:
Maintainer:
Discussion: AddImageType-Talk
Categories: Images
Discussion: AddImageType-Talk

Questions answered by this recipe

How do I add a new image type extension to the list that PmWiki automagically recognises to display as images?

Description

To add a new image type extension, say .ico (icon), add the following line to the config.php file.

$ImgExtPattern = "$ImgExtPattern|\\.ico|\\.ICO";

An example of adding .bmp (bit map) is

$ImgExtPattern = "\\.(?:gif|jpg|jpeg|png|bmp|GIF|JPG|JPEG|PNG|BMP)";

Notes

Release Notes

See Also

Contributors

  • PM

Comments

See discussion at AddImageType-Talk

Edit - History - Print - Recent Changes - Search
Page last modified on August 31, 2012, at 09:19 PM