top of page
bottom of page
```javascript
import wixMedia from 'wix-media-backend';
wixMedia.optimize({
fileId: 'YOUR_FILE_ID',
quality: 0.8, // adjust quality between 0 and 1
keepInPlace: true // set to true to keep original image
})
.then((optimizedFile) =>
.image {
width: 200px;
height: 200px;
border-radius: 50%;
filter: drop-shadow(16px 16px 10px gray);
cursor: grab;
}
```html
```
```html
```
```html
```