# UI - Web/Imgur Pictures

## Download a web picture - aphone.GUI.WebPicture(string name, string link)

{% hint style="info" %}
This function get the picture format from the link. However if there no format, the function will try to save with the .jpg format
{% endhint %}

| Parameters | Purposes                        |
| ---------- | ------------------------------- |
| Name       | Unique name to save the picture |
| Link       | URL Link                        |

## aphone.GUI.GetWebPicture(string name, string link, string flags)

| Parameters | Purposes                                                       |
| ---------- | -------------------------------------------------------------- |
| Name       | Unique name of the picture                                     |
| Link       | URL Link                                                       |
| Flags      | 2nd field of <https://wiki.facepunch.com/gmod/Global.Material> |

## aphone.GetImgurPics()

Return the list of the imgur ID the player uploaded in his lifetime

{% hint style="info" %}
Internal, you don't need this function for a "normal usage" of the API
{% endhint %}

## aphone.GetImgurMat(string imgur\_link\_id)

Return the material

```
aphone.GetImgurMat("Ri5wYVz") // https://imgur.com/Ri5wYVz
```

## aphone.SendImgur(string dir)

Upload a picture from the dir ( Start from DATA )


---

# 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://akulla-pro.gitbook.io/aphone/api/ui-web-imgur-pictures.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.
