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

---

Recherche d’extensions

Cette extension **n’a pas été testée avec les3 dernières versions majeures de WordPress**.
Elle pourrait ne plus être maintenue ou supportée et peut présenter des erreurs 
de compatibilité quand elle est utilisée avec des versions récentes de WordPress.

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

# Image Cropper

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

[Télécharger](https://downloads.wordpress.org/plugin/image-cropper.0.3.0.zip)

 * [Détails](https://fr-ca.wordpress.org/plugins/image-cropper/#description)
 * [Avis](https://fr-ca.wordpress.org/plugins/image-cropper/#reviews)
 *  [Installation](https://fr-ca.wordpress.org/plugins/image-cropper/#installation)
 * [Développement](https://fr-ca.wordpress.org/plugins/image-cropper/#developers)

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

## Description

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.

## Avis

Il n’y a aucun avis sur cette extension.

## Contributeurs & développeurs

« Image Cropper » est un logiciel libre. Les personnes suivantes ont contribué à
cette extension.

Contributeurs

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

[Traduisez « Image Cropper » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/image-cropper/), 
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/image-cropper/), ou s’inscrire
au [journal de développement](https://plugins.trac.wordpress.org/log/image-cropper/)
par [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Historique des changements

#### 0.3.0

 * First public version.

## Méta

 *  Version **0.3.0**
 *  Last updated **il y a 15 années**
 *  Active installations **40+**
 *  WordPress version ** 3.0 ou plus **
 *  Tested up to **3.2.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Tags
 * [api](https://fr-ca.wordpress.org/plugins/tags/api/)[cropper](https://fr-ca.wordpress.org/plugins/tags/cropper/)
   [image](https://fr-ca.wordpress.org/plugins/tags/image/)
 *  [Vue avancée](https://fr-ca.wordpress.org/plugins/image-cropper/advanced/)

## Notes

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/)

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/image-cropper/)