# PictureOptions Type

> PictureOptions type alias in the Node.js TypeScript API: Picture settings with either dataUrl or base64 and an image/png or image/jpeg mimeType.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > PictureOptions Type
- **360 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pictureoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pictureoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pictureoptions/llms-full.txt

---

Public type for PictureOptions.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
type PictureOptions = Partial<Omit<PictureDrawing, 'kind' | 'position' | 'crop' | 'dataUrl'>> & ({
    dataUrl: string;
    base64?: never;
} | {
    base64: string;
    dataUrl?: never;
}) & {
    mimeType?: 'image/png' | 'image/jpeg';
    placement?: 'cell' | 'over-cells';
    cell?: string;
    position?: Partial<DrawingPosition>;
    crop?: Partial<PictureDrawing['crop']>;
};
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
const value = { dataUrl: 'Invoice' };
console.log(value);
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt)

---

## Nearby

- **Previous:** [PictureDrawing.barcode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/picturedrawing/barcode-property/llms-full.txt)
- **Next:** [PictureSource Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/picturesource/llms-full.txt)
