Title: Image Cropper
Author: julioprotzek
Published: <strong>2011年7月21日</strong>
Last modified: 2011年7月21日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# Image Cropper

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

[ダウンロード](https://downloads.wordpress.org/plugin/image-cropper.0.3.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/image-cropper/#description)
 * [レビュー](https://ja.wordpress.org/plugins/image-cropper/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/image-cropper/#installation)
 * [開発](https://ja.wordpress.org/plugins/image-cropper/#developers)

 [サポート](https://wordpress.org/support/plugin/image-cropper/)

## 説明

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

## インストール

 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.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Image Cropper はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

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

[“Image Cropper” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/image-cropper/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/image-cropper/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/image-cropper/)を [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.3.0

 * First public version.

## メタ

 *  バージョン **0.3.0**
 *  最終更新日 **15年前**
 *  有効インストール数 **30+**
 *  WordPress バージョン ** 3.0またはそれ以降 **
 *  検証済み最新バージョン: **3.2.1**
 *  言語
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * タグ
 * [api](https://ja.wordpress.org/plugins/tags/api/)[cropper](https://ja.wordpress.org/plugins/tags/cropper/)
   [image](https://ja.wordpress.org/plugins/tags/image/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/image-cropper/advanced/)

## 評価

レビューはまだ送信されていません。

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/image-cropper/reviews/)

## 貢献者

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

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/image-cropper/)