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

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

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

# Image Cropper

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

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

 * [Detalles](https://es.wordpress.org/plugins/image-cropper/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/image-cropper/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/image-cropper/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/image-cropper/#developers)

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

## Descripción

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

## Instalación

 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.

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«Image Cropper» es un software de código abierto. Las siguientes personas han colaborado
con este plugin.

Colaboradores

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

[Traduce «Image Cropper» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/image-cropper/) , 
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/image-cropper/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/image-cropper/)
por [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 0.3.0

 * First public version.

## Meta

 *  Versión **0.3.0**
 *  Última actualización **hace 15 años**
 *  Instalaciones activas **40+**
 *  Versión de WordPress ** 3.0 o superior **
 *  Probado hasta **3.2.1**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Etiquetas:
 * [api](https://es.wordpress.org/plugins/tags/api/)[cropper](https://es.wordpress.org/plugins/tags/cropper/)
   [image](https://es.wordpress.org/plugins/tags/image/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/image-cropper/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

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

[Ver todas las valoraciones](https://wordpress.org/support/plugin/image-cropper/reviews/)

## Colaboradores

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

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/image-cropper/)