Title: Image Cropper
Author: julioprotzek
Published: <strong>21. Juli 2011</strong>
Last modified: 21. Juli 2011

---

Plugins durchsuchen

Dieses Plugin **ist nicht mit den jüngsten 3 Hauptversionen von WordPress** getestet
worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme
haben, wenn es mit neueren Versionen von WordPress verwendet wird.

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

# Image Cropper

 Von [julioprotzek](https://profiles.wordpress.org/julioprotzek/)

[Herunterladen](https://downloads.wordpress.org/plugin/image-cropper.0.3.0.zip)

 * [Details](https://de-at.wordpress.org/plugins/image-cropper/#description)
 * [Rezensionen](https://de-at.wordpress.org/plugins/image-cropper/#reviews)
 *  [Installation](https://de-at.wordpress.org/plugins/image-cropper/#installation)
 * [Entwicklung](https://de-at.wordpress.org/plugins/image-cropper/#developers)

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

## Beschreibung

For cropping a post thumbnail image to 200×300 pixels:

    ```
    <?php
        the_post();
        img(200, 300);
    ?>
    ```

This will verify the existence of post thumbnail, crop the image, save it in uploads
folder, and generate an image tag.

To verify the existence of a post thumbnail, you can use `has_img()`

    ```
    <?php if (has_img()): ?>
    <figure>
        <?php img(200, 300) ?>
        <figcaption>Some text</figcaption>
    </figure>
    <?php endif ?>
    ```

To crop images that are not post thumbnails, you can use `crop($url, $size)`

    ```
    <?php
        $cropped_url= crop( get_bloginfo('url') . '/wp-content/uploads/image.jpg', array(200, 300) );
    ?>
    <img src="<?php echo $cropped_url ?>">
    ```

## Installation

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress
 3. Done 🙂 Use the new template tags on your theme, eg `<?php the_post(); img(200,
    300); ?>`

## FAQ

  When using img(), where does the image come from?

The img() template tag gets the image from your post thumbnail.

## Rezensionen

There are no reviews for this plugin.

## Mitwirkende & Entwickler

„Image Cropper“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

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

[Übersetze „Image Cropper“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/image-cropper/),
sieh dir das [SVN Repository](https://plugins.svn.wordpress.org/image-cropper/) 
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/image-cropper/)
per [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 0.3.0

 * First public version.

## Meta

 *  Version **0.3.0**
 *  Last updated **vor 15 Jahren**
 *  Active installations **40+**
 *  WordPress version ** 3.0 oder höher **
 *  Tested up to **3.2.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Tags
 * [api](https://de-at.wordpress.org/plugins/tags/api/)[cropper](https://de-at.wordpress.org/plugins/tags/cropper/)
   [image](https://de-at.wordpress.org/plugins/tags/image/)
 *  [Erweiterte Ansicht](https://de-at.wordpress.org/plugins/image-cropper/advanced/)

## Bewertungen

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/image-cropper/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/image-cropper/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas sagen? Brauchst du Unterstützung?

 [Supportforum anzeigen](https://wordpress.org/support/plugin/image-cropper/)