Configuring maximum image size

You can set the size limit for images that users paste or drag into rich text editors in the user interface. Any individual images that users add in the interface cannot exceed this file size.

About this task

The default image size limit is 5 MB. You can increase or decrease this size limit.

Procedure

  1. To view the current configuration value, if one is set, enter the following command.
    sudo resutil configget -imagemb
  2. Use the following command to configure the size limit for individual images.
    sudo resutil configset -imagemb <size in MB>

    The <size in MB> is a numerical value that specifies the maximum allowed size in MB.

    For example, to set the size limit to 4 MB.
    sudo resutil configset -imagemb 4
    To disable image size limit, enter the following command.
    sudo resutil configset -imagemb -1
    To view the help on this configuration value, enter the following command.
    sudo resutil configset --help