# `TextureSpec.url`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`TextureSpec`](TextureSpec.md) · inherited by [`TextureSlot`](TextureSlot.md), [`TextureInput`](TextureInput.md) · stable · since 2.0.0

```ts
url?: string;
```

png, jpg, webp, avif, ktx2, hdr. A relative URL resolves as `fetch()` resolves it, against
the page's base URI, never against a scene model's `assetBaseUrl`: a texture path
copied from a stored configurator is relative to its model's base, so make it absolute
(`new URL(path, assetBaseUrl).href`) before a rule, [`materials.create`](Materials.create.md) or [`apply`](Writer.apply.md) takes it.

**Default:** undefined (keep the slot's image)

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `url` names no product |
| 2. A precedent | pass (through its owner [`TextureSpec`](TextureSpec.md)): [glTF KHR_texture_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) (row `G34`) |
| 3. Two apps, or labs | pass: 4 apps (ledger: app-0c773a4ee3, app-f3598fad77; fleet cross-check: app-59c5b5751e, app-e61a0b42ad, app-f3598fad77) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `G34` (through its owner [`TextureSpec`](TextureSpec.md)) at tier stable (a member only where no rule, data, asset or app code serves the need) |
