> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimize images in SolidJS with Cloudinary (video tutorial)

[githublink]: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/solid-transformations-effects

## Overview

Learn how to optimize images in SolidJS using the [Cloudinary js-url-gen](javascript_integration) library.

## 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.

> **TIP**: :title=View the code

You can find the code from this tutorial in [GitHub][githublink].
## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
### Use Cloudinary to deliver images in SolidJS
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=00 :player=cld} | SolidJS is designed for speed, and it's crucial that your images load just as quickly. Learn how to utilize Cloudinary's URL-Gen SDK to set up, optimize, and transform images in SolidJS.

### Use the Cloudinary URL-Gen SDK in SolidJS
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=17 :player=cld} | The Cloudinary URL-Gen SDK is versatile and can be integrated into any JavaScript app or framework. To use it with SolidJS, install the SDK, import it into your project, and then set up a new Cloudinary instance. Begin transforming Cloudinary URLs by updating your existing image `src` prop to `{cld.image(<public id>).toURL()}`.

### Apply Cloudinary optimizations
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=12 :player=cld} | Optimize your images by chaining the `quality` option with the value "auto" for [Automatic Quality Selection](image_optimization#automatic_quality_selection_q_auto). Then, chain the `format` option, also set to "auto," for [Automatic Format Selection](image_optimization#automatic_format_selection_f_auto).

### Add image transformations
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=56 :player=cld} | Enhance your image optimization by adding transformations. Import the `scale` action and chain the `resize` transformation to set the image width to 1200px and height to 800px. You can take this a step further by utilizing Cloudinary's [Responsive Images](responsive_images) solution.

## Keep learning

> **READING**:
>
> * Learn more about [image optimization](image_optimization).

> * Learn more about [image transformations](image_transformations).

> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

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

  
  
  
    Optimization Tips
    Tips for delivering optimized images 
  

  
  
  
    Optimize Images with Nuxt
    Optimize images in Nuxt with Nuxt Cloudinary 
  

  
  
  
    Content-aware Video Cropping
    Smartly crop a video using content-aware AI 
  

&nbsp;

&nbsp;Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
&nbsp;
