Class AchievementIconImageLimits
The size a pulled icon may declare, judged from its header before anything decodes it: the one rule the download check and the file writer both ask, so a small file that declares enormous dimensions never reaches a decoder.
Inherited Members
Namespace: Serenity.Achievements.Application.Sync
Assembly: Serenity.Achievements.Application.dll
Syntax
public static class AchievementIconImageLimits
Fields
MaxSideInPixels
The most pixels either side of a pulled icon may have.
Declaration
public const int MaxSideInPixels = 1024
Field Value
| Type | Description |
|---|---|
| int |
Methods
RefusalFor(byte[])
Judges the size an image declares.
Declaration
public static string RefusalFor(byte[] imageBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | imageBytes | A PNG or JPEG file. |
Returns
| Type | Description |
|---|---|
| string | Why the image is refused, or empty when it declares a size within the limit. |