﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage

> ## Agent Instructions
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation or Cloudinary skills; don't infer or invent guidance that isn't specified.
>
> Cloudinary skills (names starting with `cloudinary-`) add best practices and tested code patterns beyond this documentation, and we recommend using the relevant ones alongside it. Available skills are listed at https://cloudinary.com/documentation/.well-known/agent-skills/index.json?referrer=docpage&page=image_optimization_basics_tutorial and can be installed with `npx skills add https://cloudinary.com/documentation`.

# Image optimization basics (video tutorial)

## Overview

Large images slow down websites and hurt performance scores. This tutorial shows how to optimize any image in Cloudinary with a simple two-parameter URL change: `q_auto` for automatic quality compression and `f_auto` to automatically serve the best file format for each browser.

No code required. Just edit the delivery URL and your images are instantly optimized for every device. Learn more in the [image optimization](image_optimization) guide.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
{videoTranscript:publicId=training/Image_Optimization_hpnsjk}

## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.### Introduction
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Images stored in the cloud are often much larger than they need to be when delivered to a website. Cloudinary makes it easy to automatically compress and convert your images with a single URL change. |

### Choose an asset and copy its URL
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Start by choosing any asset from your media library — a photo, icon, or hero banner — and copy its delivery URL. This is the link used in your website to display the image. |

### Add q_auto and f_auto
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Edit the delivery URL and add `q_auto` for automatic quality compression, and `f_auto` to automatically serve the best file format for each browser. Then hit reload. Learn more about [image optimization](image_optimization) parameters. |

### See the results
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Your image is now perfectly optimized for every device automatically. Use `q_auto/f_auto` on any image delivery URL to reduce file sizes and improve your site's performance scores. |

## Keep learning

> **READING**:
>
> * Learn more about [image optimization](image_optimization) and all the available quality and format parameters.

> * Explore [media optimization](media_optimization) for a broader look at delivery performance options.

> * Discover more transformations in the [Transformation URL API reference](transformation_reference).

> * See how optimization improves [e-commerce workflows](ecommerce_workflows_product) for product imagery.

#### If you like this, you might also like...

[Optimize Images in React](optimize_images_in_react_tutorial)

Reduce image file sizes with automatic optimization

[Next.js Image Optimization](nextjs_image_optimization_tutorial)

Optimize and crop images with CldImage

[Remove Backgrounds](background_removal_tutorial)

Erase any image background with one URL parameter

&nbsp;

&nbsp;Check out the Cloudinary