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

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

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

# Image Cropper

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

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

 * [Dettagli](https://it.wordpress.org/plugins/image-cropper/#description)
 * [Recensioni](https://it.wordpress.org/plugins/image-cropper/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/image-cropper/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/image-cropper/#developers)

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

## Descrizione

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 ?>">
    ```

## Installazione

 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.

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Image Cropper” è un software open source. Le persone che hanno contribuito allo
sviluppo di questo plugin sono indicate di seguito.

Collaboratori

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

[Traduci “Image Cropper” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/image-cropper/) segui
il [repository SVN](https://plugins.svn.wordpress.org/image-cropper/), segui il 
[log delle modifiche](https://plugins.trac.wordpress.org/log/image-cropper/) tramite
[RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.3.0

 * First public version.

## Meta

 *  Versione **0.3.0**
 *  Ultimo aggiornamento **15 anni fa**
 *  Installazioni attive **30+**
 *  Versione WordPress ** 3.0 o superiore **
 *  Testato fino alla versione **3.2.1**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Tag
 * [api](https://it.wordpress.org/plugins/tags/api/)[cropper](https://it.wordpress.org/plugins/tags/cropper/)
   [image](https://it.wordpress.org/plugins/tags/image/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/image-cropper/advanced/)

## Valutazioni

Non sono state ancora inviate recensioni.

[La tua recensione](https://wordpress.org/support/plugin/image-cropper/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/image-cropper/reviews/)

## Collaboratori

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

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/image-cropper/)