---
title: "preferSmallTextureFiles(quality:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/entity/writeoptions/prefersmalltexturefiles(quality:)"
---

# preferSmallTextureFiles(quality:)

Reduce textures’ file size.

## Declaration

```swift
static func preferSmallTextureFiles(quality: Entity.WriteOptions.TextureQuality) -> Entity.WriteOptions
```

## Discussion

Discussion RealityKit reduces the file size while preserving its dimensions. RealityKit can use various strategies to reduce the file size including lossy encoding the texture as an image or storing the original source image. Mipmaps can also be regenerated. Writing smaller texture files can increase memory usage and load time. Without this option, textures can be written to a compressed pixel format, resulting in larger file sizes but smaller memory usage and load time. note: RealityKit ignores this option for textures created with none.

## See Also

### Configuring export options

- [preferFastExport](realitykit/entity/writeoptions/preferfastexport.md)
- [Entity.WriteOptions.TextureQuality](realitykit/entity/writeoptions/texturequality.md)
