Max Image Size for Image Upload
Controlling the size of uploaded images is important for ensuring optimal performance, fast email loading times, and compliance with email client limitations. With the imageMaxSize
setting in the Topol Plugin, you can define a strict maximum file size limit (in bytes) for image uploads via the built-in File Manager.
The imageMaxSize
parameter is defined inside the TOPOL_OPTIONS
object when initializing the plugin. It only accepts values in bytes.
ts
imageMaxSize: 2097152, //2MB in bytes
Size Reference Guide
To help configure the limit accurately, here are a few byte conversions:
- 1MB = 1048576 bytes
- 2MB = 2097152 bytes
- 3MB = 3145728 bytes
- 5MB = 5242880 bytes