Title: PhotoBlog Image Fixer
Author: MartyThornley
Published: <strong>3. maj, 2010</strong>
Last modified: 17. oktober, 2014

---

Søg plugins

![](https://ps.w.org/photoblog-image-fixer/assets/banner-772x250.jpg?rev=1009344)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://s.w.org/plugins/geopattern-icon/photoblog-image-fixer_ffffff.svg)

# PhotoBlog Image Fixer

 Af [MartyThornley](https://profiles.wordpress.org/martythornley/)

[Download](https://downloads.wordpress.org/plugin/photoblog-image-fixer.zip)

 * [Detaljer](https://da.wordpress.org/plugins/photoblog-image-fixer/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/photoblog-image-fixer/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/photoblog-image-fixer/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/photoblog-image-fixer/#developers)

 [Support](https://wordpress.org/support/plugin/photoblog-image-fixer/)

## Beskrivelse

PhotoBlog Image Fixer allows better image sizing and removes those ugly squished
images when you accidently upload a larger image.

 * Removes the inline height dimension added by the WordPress content filter.
 * Adds class names to the automatically generated p tags that wrap each image as
   well as the image itself.
 * Adds a quick line of CSS to the page making images in a p tag have a max-width
   of 100% of the containing element

## Installation

 1. Upload `photoblog_image_fixer.php` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

  WordPress MU/Multisite?

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.

  How do I use it?

Just activate the plugin. No settings. No template tags or shortcodes to worry about.

  How does the class name added fix images?

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.
So we added some styling to images by wrapping the content in classes and adding
some fixing styles.

You can also add your own using the added classes like described below.

Wraps all content in a wrapper – image-fixer-wrapper

    ```
    .image-fixer-wrapper            {}
    ```

Wraps all images in a span called .image-fixer

    ```
    span.image-fixer                { padding: 0px; margin: 0px; }
    ```

Adds a class to the image itself .image-sizer

    ```
    img.image-sizer                 {}
    ```

Because the plugin also adds a class to the image, you can over-ride that if you
want like this:

    ```
    span.image-fixer img.image-sizer        { max-width: 800px; }
    ```

You can also add a class .no-image-fix to any image you want to remain untouched.
And then can style that in other ways.

    ```
    .no-image-fix                   {}
    ```

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“PhotoBlog Image Fixer” er open source-software. Følgende personer har bidraget 
til dette plugin.

Bidragsydere

 *   [ MartyThornley ](https://profiles.wordpress.org/martythornley/)

[Oversæt “PhotoBlog Image Fixer” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/photoblog-image-fixer)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/photoblog-image-fixer/),
tjek [SVN repository](https://plugins.svn.wordpress.org/photoblog-image-fixer/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/photoblog-image-fixer/)
via [RSS](https://plugins.trac.wordpress.org/log/photoblog-image-fixer/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.4

Now uses jQuery to wrap content and add classes. Much better method of finding images
within content.
 You may need to revisit and update CSS if you used the classes 
added by previous versions.

#### 1.3.1

Fixed typo that made images act weird.

#### 1.3

Fixed max-width problem in IE.
 Added object recognition, adding class name to paragraphs
containing embedded media.

#### 1.2

Fixed height and class separately. It was getting confused when both were there.

#### 1.1

fixed installation error

## Meta

 *  Version **1.4**
 *  Senest opdateret **12 år siden**
 *  Aktive installationer **10+**
 *  Testet op til **4.0.38**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/photoblog-image-fixer/)
 * Tags
 * [images](https://da.wordpress.org/plugins/tags/images/)[photoblog](https://da.wordpress.org/plugins/tags/photoblog/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/photoblog-image-fixer/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/photoblog-image-fixer/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/photoblog-image-fixer/reviews/)

## Bidragsydere

 *   [ MartyThornley ](https://profiles.wordpress.org/martythornley/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/photoblog-image-fixer/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=11225299)