Title: Image Cropper
Author: julioprotzek
Published: <strong>21 يوليو، 2011</strong>
Last modified: 21 يوليو، 2011

---

البحث عن الإضافات

هذه الإضافة **لم يتم تحديثها وتجربتها لأكثر من 3 إصدارات ووردبريس رئيسية**. قد لا
تكون خاضعة للصيانة أو تقدم الدعم والمساعدة بالوقت الحالي وقد تكون بها مشاكل في التوافق
عند إستخدامها مع إصدارات حديثة من ووردبريس.

![](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://ar.wordpress.org/plugins/image-cropper/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/image-cropper/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/image-cropper/#installation)
 * [التطوير](https://ar.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); ?>`

## الأسئلة المتكررّة

  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.

## ميتا Meta

 *  Version **0.3.0**
 *  Last updated **قبل 15 سنة**
 *  Active installations **30+**
 *  WordPress version ** 3.0 أو أعلى **
 *  Tested up to **3.2.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/image-cropper/)
 * Tags
 * [api](https://ar.wordpress.org/plugins/tags/api/)[cropper](https://ar.wordpress.org/plugins/tags/cropper/)
   [image](https://ar.wordpress.org/plugins/tags/image/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/image-cropper/advanced/)

## التقييم

لم يتم تقديم أي مراجعات بعد.

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

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

## المساهمون

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

## الدعم

لديك شيء لتقوله؟ بحاجة الى مساعدة؟

 [عرض منتدى الدعم](https://wordpress.org/support/plugin/image-cropper/)