Auto-resizing photos

What about adding the possibility to let users upload photos that its size is bigger than the max allowed size of attachment by auto-resizing it?, if it possible.

For example: Max size of attached files is 2 mb but we need resizing any photo that bigger than allowable limit to provide storage space for the server.

  • Rocket.Chat app version:
  • Rocket.Chat server version: 2.3.1