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

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

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

# Image Cropper

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

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

 * [Szczegóły](https://pl.wordpress.org/plugins/image-cropper/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/image-cropper/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/image-cropper/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/image-cropper/#developers)

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

## Opis

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

## Instalacja

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

## Najczęściej zadawane pytania

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

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

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Image Cropper” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój
wtyczki.

Zaangażowani

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

[Przetłumacz wtyczkę “Image Cropper” na swój język.](https://translate.wordpress.org/projects/wp-plugins/image-cropper)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/image-cropper/), sprawdź
[repozytorium SVN](https://plugins.svn.wordpress.org/image-cropper/) lub czytaj 
[dziennik rozwoju](https://plugins.trac.wordpress.org/log/image-cropper/) przez 
[RSS](https://plugins.trac.wordpress.org/log/image-cropper/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 0.3.0

 * First public version.

## Meta

 *  Wersja **0.3.0**
 *  Ostatnia aktualizacja **15 lat temu**
 *  Włączone instalacje **40+**
 *  Wersja WordPressa ** 3.0 lub nowszej **
 *  Testowano do **3.2.1**
 *  Język
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Tagi
 * [api](https://pl.wordpress.org/plugins/tags/api/)[cropper](https://pl.wordpress.org/plugins/tags/cropper/)
   [image](https://pl.wordpress.org/plugins/tags/image/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/image-cropper/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

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

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

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/image-cropper/)