imageCompressor = file => {
  return new Promise(resolve => {
    new Compress(file, {
      quality: 0.6,
      success: file => resolve(file),
      error: err => console.log(err.message),
    })
  })
}
Compresses and returns file
@param {File} file