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

# How to compress image

> Reduce image file size while maintaining visual quality

## Quick Start

<Steps>
  <Step>
    Click on the selection panel to select images, or drag and drop images/folders into it

    <img src="https://mintcdn.com/compresto/Z4FNL_2JKBxzG7XW/images/image.png?fit=max&auto=format&n=Z4FNL_2JKBxzG7XW&q=85&s=c320f0b188a96e1453d412a87bb20756" alt="select images" width="2022" height="1574" data-path="images/image.png" />
  </Step>

  <Step>
    Adjust the image compression options

    <img src="https://mintcdn.com/compresto/NQFjWaN5AnR4jyPH/images/CleanShot2025-12-29at11.01.03@2x.png?fit=max&auto=format&n=NQFjWaN5AnR4jyPH&q=85&s=9df12c8e7af2af5fa89461f2c5f24036" alt="image options" width="1992" height="1562" data-path="images/CleanShot2025-12-29at11.01.03@2x.png" />
  </Step>

  <Step>
    Press **Compress** to start

    <img src="https://mintcdn.com/compresto/NQFjWaN5AnR4jyPH/images/CleanShot2025-12-29at11.01.03@2x.png?fit=max&auto=format&n=NQFjWaN5AnR4jyPH&q=85&s=9df12c8e7af2af5fa89461f2c5f24036" alt="compress" width="1992" height="1562" data-path="images/CleanShot2025-12-29at11.01.03@2x.png" />
  </Step>

  <Step>
    View compression results and open files in Finder

    <img src="https://mintcdn.com/compresto/NQFjWaN5AnR4jyPH/images/CleanShot2025-12-29at11.02.20@2x.png?fit=max&auto=format&n=NQFjWaN5AnR4jyPH&q=85&s=ea7ed5cc4ee998fe4afbcba80a9cd27e" alt="results" width="1980" height="1516" data-path="images/CleanShot2025-12-29at11.02.20@2x.png" />
  </Step>
</Steps>

## Compression Options

### Image Quality

| Quality        | Description                          | Best For             |
| -------------- | ------------------------------------ | -------------------- |
| **Highest**    | Maximum quality, minimal compression | Archiving, print     |
| **High**       | Excellent quality                    | Professional use     |
| **Good**       | Good balance of quality and size     | Web images           |
| **Medium**     | Moderate compression                 | Social media         |
| **Acceptable** | Higher compression, smaller files    | Thumbnails, previews |

### Image Size

Resize images during compression:

| Option             | Description                                 |
| ------------------ | ------------------------------------------- |
| **Same as input**  | Keep original dimensions (default)          |
| **Percentage**     | Scale by percentage (e.g., 50% = half size) |
| **Max width**      | Set maximum width in pixels                 |
| **Max height**     | Set maximum height in pixels                |
| **Max long edge**  | Limit the longer dimension                  |
| **Max short edge** | Limit the shorter dimension                 |

<Note>
  When resizing, aspect ratio is always preserved.
</Note>

### Image Format

| Format            | Description                          | Best For              |
| ----------------- | ------------------------------------ | --------------------- |
| **Same as input** | Keep original format (default)       | General use           |
| **JPG**           | Lossy compression, small files       | Photos                |
| **PNG**           | Lossless, supports transparency      | Graphics, screenshots |
| **WebP**          | Modern format, excellent compression | Web images            |
| **AVIF**          | Newest format, best compression      | Modern browsers       |

## Supported Input Formats

Compresto supports compressing these image formats:

* JPG / JPEG
* PNG
* WebP
* AVIF
* HEIC
* TIFF
* BMP
* GIF (static)

## Tips for Best Results

* **For photos**: Use JPG format with "Good" or "High" quality
* **For graphics with transparency**: Use PNG or WebP format
* **For web optimization**: Use WebP format with "Good" quality
* **For maximum compression**: Use AVIF format (check browser support)
* **For batch resizing**: Use "Max long edge" to uniformly resize images
