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

---

Prohledat pluginy

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

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

# Image Cropper

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

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

 * [Podrobnosti](https://cs.wordpress.org/plugins/image-cropper/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/image-cropper/#reviews)
 *  [Instalace](https://cs.wordpress.org/plugins/image-cropper/#installation)
 * [Vývojáři](https://cs.wordpress.org/plugins/image-cropper/#developers)

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

## Popis

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

## Instalace

 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); ?>`

## Nejčastější dotazy

  When using img(), where does the image come from?

The img() template tag gets the image from your post thumbnail.

## Recenze

Pro tento plugin nejsou žádné recenze.

## Autoři

Image Cropper je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Spolupracovníci

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

[Přeložte “Image Cropper” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/image-cropper/), podívejte
se do [SVN repozitáře](https://plugins.svn.wordpress.org/image-cropper/), nebo se
přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/image-cropper/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

#### 0.3.0

 * First public version.

## Meta

 *  Verze **0.3.0**
 *  Poslední aktualizace **před 15 roky**
 *  Aktivních instalací **30+**
 *  Verze WordPressu ** 3.0 nebo novější **
 *  Testováno až do WordPressu **3.2.1**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Štítky
 * [api](https://cs.wordpress.org/plugins/tags/api/)[cropper](https://cs.wordpress.org/plugins/tags/cropper/)
   [image](https://cs.wordpress.org/plugins/tags/image/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/image-cropper/advanced/)

## Hodnocení

Zatím nebyly zadány žádné recenze.

[Vaše hodnocení](https://wordpress.org/support/plugin/image-cropper/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/image-cropper/reviews/)

## Spolupracovníci

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

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/image-cropper/)