# Sandbox.Resources.ImageFileGenerator.MaxSize

```csharp
int MaxSize { get; set; }
```

The maximum size of the image in pixels. If the imported image is larger than this (after cropping), it will be downscaled to fit.

Declared in [Sandbox.Resources.ImageFileGenerator](/api/Sandbox.Resources.ImageFileGenerator).
Assembly: `Sandbox.Engine`.
