---
title: updateImage
slug: viewer-3d/methodsupdateimage
docTags: 
createdAt: 2026-09-17T10:31:12.388Z
---

Updates the specified image. Only the given properties change.

## Usage

```javascript
const imageId = "image-1";

viewer3d.updateImage(imageId, {
  opacity: 0.5,
  transform: {
    position: {
      x: 2.0,
      y: 1.0,
      z: 0.0
    }
  }
});
```

## Parameters

### imageId

Id of the image to update.

| **Type** | **Required** |
| -------- | ------------ |
| String   | Yes          |

### image

Properties to update.

| **Type**                                      | **Required** |
| --------------------------------------------- | ------------ |
| Partial [Image](docId\:uq36HUd--sJJ5wrLaR6Yq) | Yes          |

