PhotoBlog Image Fixer allows better image sizing ensuring that the largest possible image is 100% of the post area, without extending past the edges.
Yes. Works in '/mu-plugins/' as well, allowing it to work automatically for every blog. It is just a couple simple filters that work automatically.
Just activate the plugin. No settings. No template tags or shortcodes to worry about.
When images are inserted through the WordPress editor, they automatically get wrapped in paragraph tags, like this:
<p><a href=".... <img src=""..... /></p>
The problem is that when you try to add padding or margins or any style to your paragraphs, this also effects the images, because they are inside of paragraphs.
By adding a class name to paragraphs that contain images, we can style them differently.
p { padding: 20px 40px; }
p.image-fixer { padding: 0px; margin: 0px; }
The CSS line added automatically is the following:
p.imagefixer img { max-width: 100% };
Because the plugin also adds a class to the image, you can over-ride that if you want like this:
p.imagefixer img.imagesizer { max-width: 800px; }
A class is also added to paragraphs around objects to help style embedded media. But no style is added by the plugin. To target paragraphs containing embedded objects add the following to your css:
p.objectfixer {}
Compatible up to: 3.0.5
Last Updated: 2010-11-13
Downloads: 789
Got something to say? Need help?