Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Orientation

Sebastian Tschan edited this page Jun 9, 2020 · 4 revisions

A list of useful Options for image orientation:

  1. To upload the original images, use the following options:
    {
      imageOrientation: false,
      disableImageResize: true
    }
  2. To upload images resized and reoriented on client-side and otherwise meta data preserved, use the following options:
    {
      imageOrientation: true,
      disableImageResize: false,
      imageMaxWidth: 1920,
      imageMaxHeight: 1080
    }
  3. To upload images with their original dimensions, their orientation corrected on client-side but otherwise metadata preserved, use the following options:
    {
      imageOrientation: true,
      disableImageResize: false,
      imageForceResize: true,
      imageMaxWidth: null,
      imageMaxHeight: null
    }
  4. To upload images resized on client-side, with their original pixel data orientation and meta data preserved, use the following options:
    {
      imageOrientation: 1,
      disableImageResize: false,
      imageMaxWidth: 1920,
      imageMaxHeight: 1080
    }
  5. To upload images resized and reoriented on client-side and meta data discarded, use the following options:
    {
      imageOrientation: true,
      disableImageResize: false,
      disableImageMetaDataSave: true,
      imageMaxWidth: 1920,
      imageMaxHeight: 1080
    }
Clone this wiki locally