Resizing images after upload settings

It’s not a mystery if it’s written in plain text :wink:

Ok, so here’s what happens when a user uploads an image

  • NGINX accepts the image up to its “client_max_body_size” setting (defaults to 10MB, can be overwritten in app.yml)
  • Then, we’ll convert large PNG/BMPs to JPEG to keep the filesize at bay
  • Then, we’ll halve (up to 3 times) the uploaded image until it’s lower than the “max image size kb” site setting
  • If the image is still larger, then we’ll reject it :boom:
  • Then, go on with the upload process (fix orientation, crop, optimize…)
7 Likes