How to set image size validation for a category

Restrict image uploads by width and height on a category level to ensure only appropriately sized files are added. A simple way to keep your DAM clean, fast, and fit for purpose.

In QBank, you can configure image file validations on a category level, helping ensure users upload the right type of content based on how it's going to be used. This is especially useful for categories that have specific technical or visual requirements, like symbols, icons, or thumbnails.

Why use image size validation

Sometimes you need more control than just file type or naming rules. Let’s say you’ve created a category for icons. You probably want those files to be small and lightweight, not massive 5000 by 5000 pixel images. With image size validation, you can make sure anything added to that category stays within a defined width or height limit.

Examples of where this is useful

  • Icons and symbols: Ensure uploads don’t exceed 1000 by 1000 pixels to avoid unnecessarily large files for small visuals.

  • Photographs: Prevent extremely high-resolution uploads that take up storage without improving quality or usage.

  • Technical documentation graphics: Keep within a set size to ensure consistency and avoid performance issues in embedded systems.

  • External contributor uploads: Set size restrictions to reduce the risk of oversized or off-spec uploads from occasional users.

How it works

Image size validation checks the width and height of uploaded image files. These restrictions apply only to image formats like JPG, PNG, or GIF. Keep in mind:

  • Validation is only applied to compressed image formats

  • It does not apply to raw formats like PSD or TIFF

If a user tries to upload an image that does not meet the size requirements, they will receive a message directly in the upload prompt.

The media validation will also be describe on top of the property sets for the selected categories.

How to configure image size validation

  1. Go to the Administration tab

  2. Click Categories

  3. Create a new category or edit an existing one

  4. Scroll to the Image file validation section

  5. Enter the preferred maximum or minimum width and/or height

  6. Save the category

Once set, QBank will automatically check the size of every uploaded image in this category.

QBank-KB-validation-size

Related configurations

Want to take it even further? Combine size validation with other settings for full control:

These validations help guide users and keep your DAM tidy, structured, and optimized for every use case.

Need to create a new category first?

Validations like file type restrictions, image size limits, and naming patterns are all configured on category level. If you haven’t created your category yet, start here: How to create a category in QBank