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

# Set slide pixel size

> Set user-reported microns per pixel when a slide's physical scale metadata is missing or incorrect.

Microns per pixel (MPP) describes the physical size represented by one
base-level image pixel. Strand uses this scale when normalizing slide pixels
for inference. An incorrect value can change the biological scale of the
image regions sent to the model.

Set an override on the sample after uploading its whole-slide image and before
submitting a prediction when the embedded scale is missing or known to be
wrong. The user-reported value takes precedence over embedded slide metadata
for subsequent jobs on that sample.

## Isotropic pixels

Use one value when the horizontal and vertical scales are the same:

```python Python theme={"dark"}
client.samples.patch(upload.id, mpp=0.26)
```

```bash REST theme={"dark"}
curl -X PATCH "https://app.strandai.com/api/v1/samples/$SAMPLE_ID" \
  -H "Authorization: Bearer $STRAND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mpp": 0.26}'
```

```r R theme={"dark"}
strand_patch_sample(client, upload$id, mpp = 0.26)
```

The value must be greater than 0 and at most 100 microns per pixel. The
response echoes the persisted `mpp` value.

Each Strand sample uses one isotropic scale, so a single value governs both
axes. The REST endpoint also accepts an `{ "x", "y" }` object when both axes
are equal; an object with differing axes is rejected.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.