---
title: fastly service imageoptimizer update
summary: Update Image Optimizer default settings for a service
url: https://www.fastly.com/documentation/reference/cli/service/imageoptimizer/update
---

Update Image Optimizer default settings for a service

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--service-id` | Service ID (falls back to FASTLY_SERVICE_ID, then fastly.toml) | Yes | - |
| `--version` | 'latest', 'active', 'staged', or the number of a specific Fastly service version | Yes | - |
| `--allow-video` | Enables GIF to MP4 transformations on this service [true, false] | No | - |
| `--jpeg-quality` | The default quality to use with JPEG output (1-100) | No | - |
| `--jpeg-type` | The default type of JPEG output to use (auto, baseline, progressive) | No | - |
| `--resize-filter` | The type of filter to use while resizing an image (lanczos3, lanczos2, bicubic, bilinear, nearest) | No | - |
| `--upscale` | Whether or not we should allow output images to render at sizes larger than input [true, false] | No | - |
| `--webp` | Controls whether or not to default to WebP output when the client supports it [true, false] | No | - |
| `--webp-quality` | The default quality to use with WebP output (1-100) | No | - |
| `--json` | Render output as JSON | No | - |
| `--service-name` | The name of the service | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

