# Работа с картинками

{% hint style="warning" %}
Список предметов игры актуален до версии Rust 217 DevBlog
{% endhint %}

### Метод Resize()

```url
http://api.yrsproject.ru/public/image/Resize?shortname={shortname}&x={size_x}&y={size_y}
```

{% tabs %}
{% tab title="Request" %}

| Параметры    | Описание                                                                                                         |
| ------------ | ---------------------------------------------------------------------------------------------------------------- |
| shortname    | Название предмета, можно найти в папке с клиентом **Bundles - Items,** название должно быть без приставки ".png" |
| size\_x      | Кол-во пикселей по оси X                                                                                         |
| size\_y      | Кол-во пикселей по оси Y                                                                                         |
| {% endtab %} |                                                                                                                  |

{% tab title="Response" %}
Пользователь получает картинку предмета в указанных им размерах
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.yrsproject.ru/documentation/methods/rust-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
