Skip to main content

Getting Started

To get started with Arvan Image, you need to go through four steps: defining a domain, configuring an image source, defining an endpoint, and creating processing presets. After completing these steps, your images are processed and delivered through a dedicated address on arvanimage.ir.

Step 1: Define a Domain​

The Arvan Image domain is a subdomain on arvanimage.ir through which all processed images are delivered.

In the Arvancloud panel, select one of the Arvan Image options from the Video Platform menu. Enter the subdomain you want in the relevant field and click the Register Domain button.

If you have already registered a domain for the Video Platform, the same domain is suggested in this section too. If not, a random default subdomain is shown, which you can edit.

Note that after it is registered, this subdomain is used in image delivery URLs and can't be changed.

Step 2: Configure an Image Source​

The image source specifies where Arvan Image reads images from.

Uploading Images to the Internal Library​

To upload images directly to Arvan Image's internal library, click Images in the Arvan Image menu. Then click the Upload Image button and select the file or files you want via a link, from Arvancloud Object Storage, or directly.

After uploading, you can see the list of images, create folders, and process them.

Connecting External Storage​

To add a new source, go to the External Storage section and click the New Storage button.

Choose the source's name and type. Three source types are available:

Source typeDescription
ArvancloudA bucket in Arvancloud Object Storage
S3-compatibleAny storage compatible with the S3 protocol, such as AWS S3 or MinIO
Web FolderA public URL path where images are hosted

To connect Arvancloud Object Storage, enter the name and region of the bucket you want, and then the folder name.

If the images are in the root directory, enter / here.

To connect S3-compatible storage, enter the bucket name, folder name, endpoint address, Access Key, and Secret Key.

To connect a Web Folder, simply enter its address.

After you save it, the new source is shown in the list of active sources.

Step 3: Define an Endpoint​

Each endpoint is an independent delivery address with its own image sources. When a request reaches an endpoint, Arvan Image looks for the image in the sources connected to that endpoint, in order of priority. This structure lets you serve several separate groups of images with one domain. For example, if your old images are on Amazon S3 and your new images are on a Web Folder and Arvancloud Object Storage, you can define two separate endpoints, each with its own sources:

your-subdomain.arvanimage.ir/1.jpg ← default endpoint, source: Amazon S3
your-subdomain.arvanimage.ir/jbdauw/1.jpg ← new endpoint, sources: Web Folder and Arvancloud Object Storage

After you register the domain, a default endpoint is created automatically on the root of your domain.

Adding a New Endpoint​

In the Arvan Image menu, click Endpoint and then Add Endpoint.

In the form that opens, enter an ID for the endpoint. This ID is added to the end of your domain to make the endpoint's address.

Then select the sources you want to connect to this endpoint from the list of defined sources, and set the priority of each one.

You can have several sources active at the same time. When a request is received, Arvan Image checks the sources in order of priority and returns the image from the first source that has it.

Note that Arvan Image's internal image library always has the first priority, and you can't change its position. To change the priority of the other sources, use the ordering controls next to each source.

After you save it, the endpoint is activated, and you can use image URLs with the new address in your application or website.

The image processing guide helps you with this.

Step 4: Process Images​

After the initial setup, Arvan Image's main function begins. You can process each image at the moment of delivery, without changing the original file.

In the Arvan Image menu, click Images, then click the image you want.

On the new page, you can apply settings such as resizing, cropping, rotation, format conversion, quality, and filters such as blur and sharpen to the image. After you set each option, the image preview is updated.

Arvan Image generates a ready-to-use URL that contains all your selected settings. You can use this URL directly in the src of an <img> tag or in your application's CSS. Each time this address is called, the image is delivered with the same settings, without changing the original file.

To learn about all the processing options and the URL structure, read the image processing URL guide.