Title: Image Cropper
Author: julioprotzek
Published: <strong>Agẹmọ  21, 2011</strong>
Last modified: Agẹmọ  21, 2011

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# Image Cropper

 Láti ọwọ́ [julioprotzek](https://profiles.wordpress.org/julioprotzek/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/image-cropper.0.3.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/image-cropper/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/image-cropper/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/image-cropper/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/image-cropper/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/image-cropper/)

## Àpèjúwe

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

## Ìgbéwọlẹ̀

 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.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Image Cropper” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “Image Cropper” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/image-cropper/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/image-cropper/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/image-cropper/) 
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 0.3.0

 * First public version.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.3.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 15 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **40+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.2.1**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Àwọn àmì
 * [api](https://yor.wordpress.org/plugins/tags/api/)[cropper](https://yor.wordpress.org/plugins/tags/cropper/)
   [image](https://yor.wordpress.org/plugins/tags/image/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/image-cropper/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

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

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

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/image-cropper/)