Image Formatr
Image Formatr is a simple plugin that goes through all the content images on
posts & pages, and with zero user changes:
- gives them a standardized thumbnail format using CSS
- puts a caption underneath each one using the title
- makes them linked so they popup in full size
Thumbnails are not generated, but will be used if available in the media library.
This plugin is driven by the prettyPhoto
library so we could call this plugin a prettyPhoto integration plugin.
*Note: Supports images on Flickr.
Usage
This only applies to the images you put in your content, not theme graphics.
After the plugin runs, the output to the browser looks like:
Documentation
You can find plugin documentation at http://warriorself.com/blog/about/image-formatr/
Features
- Standardizes all thumbnails without altering posts
- Supports displaying images from Flickr:
title=βThe magnificent Ceiba at the Archaeological Site of Palenque.β>
- Generates image captions using the image
titleoralt - Integrates WordPress media library thumbnails
- Gives popups for WordPress gallery images (adjust priority setting to 12)
- Shows all content images on the blog as small thumbnails
(does not create new thumbnails but can use Media Library for thumbs) - Allows for fine-grained control of each imageβs format
- Zooms image to large size when clicked using the
prettyPhoto
library - Outputs standard XHTML compliant markup
Gallery Support
To get WordPress Gallery images to popup, this plugin must run at a priority
greater (later) than the [gallery] shortcode which runs at priority 11. Therefore
set the priority setting to 12 in the Administration Options.
Overrides
The actions of the plugin are enabled and disabled with administration settings
but can be overridden on each individual image.
usemysizeβ true/false β true = do not ignore an image width and heightusemyaβ true/false β true = do not ignore a parent anchor tagnocapβ true/false β true = do not create a captionnofxβ true/false β true = no popup effectlinkβ string url β make the caption a link to the urlhintβ string txt β this will be the new image titleasisβ true/false β true = donβt change nuthingroupβ string txt β separate popup slideshowsthumbβ string url β image thumbnail (version 0.9.7)pageβ single/!single/front/!front β page filtering (version 0.9.7)
If you want to surround an image with an anchor tag , then you should add
a usemya attribute within the image tag or else your anchor will be ignored
and replaced. If you do not want the popup effect at all, add a nofx attribute
to the image. If you do not want any caption, you can specify nocap, or just
leave the title blank. And to have the plugin completely ignore an image and
output the content directly from the post, use the asis attribute.
Example
Note: concerning the true/false overrides, do not include βfalseβ parameters
like , i.e these overrides should only include the attributes
for which you want to designate a βtrueβ value.
Credits
Image Formatr is Copyright 2014 Steven Almeroth and
licensed under a GPL license.
Based on: image-caption
by Yaosan Yeo.
PrettyPhoto: The JavaScript
Image thumbnail viewer
library by Stephane Caron is licensed under GPLv2.
Website
More information, including how to contact me, is available at
warriorself.com.
Translations
- If you would like to contribute a translation of the administration settings
screen please have a look at the
.pot
file and post to the support forum
of e-mail to me.
ToDo List
- add screenshot of output image with caption
Wish List
- phone-home feature, activate/deactivate stats helper with version number
- add admin option for html/xhtml
closing tags
- add admin option for moving title attribute to alt attribute should it
overwrite an existing alt? - debug mode could show images not found and whatnots and profiling stats
- change [flickrset id=β1234β³] to [flickr set=β1234β³]
- change [flickr pid=β123β³] to [flickr img=β123β³]
- show βthe_contentβ ordering vis a vie wp-hooks-filters-flow.php
Priority 8 :
WP_Embed->run_shortcode()
WP_Embed->autoembed()
Priority 10 :
wptexturize()
convert_smilies()
convert_chars()
wpautop()
shortcode_unautop()
prepend_attachment()
Priority 11 :
capital_P_dangit()
do_shortcode()
Priority 20 :
ImageFormatr->filter()
Bug List
- bug: add_settings_field()
| Domain | Exposures | Headers | Last Checked |
|---|---|---|---|
| z*h*a*h*r*m*.com (WP 6.7.2) | F | 2026-05-15 13:48:01 | |
| m*r*h*r*t*g*a*b*s*i.com (WP 3.5.1) | F | 2026-05-14 15:23:05 | |
| l*l*g*b*r*.com | F | 2026-05-13 11:20:48 | |
| m*n*m*d*a*e*w*r*.com (WP 6.9.4) | F | 2026-05-03 14:32:38 | |
| l*g*a*e*t*r*g*l*e*y*f.org (WP 6.9.4) | F | 2026-04-25 12:16:19 | |
| b*i*o*a*e*r*c*t*e.com (WP 6.9.4) | D | 2026-04-17 03:07:16 |