/**
  * @param File $img The file being transformed. May be false
  * @return array
  */
 protected function getThumbParams($img)
 {
     if ($img && $img->getMediaType() === MEDIATYPE_AUDIO) {
         $width = $this->mWidths;
     } else {
         // We want the width not to be the constraining
         // factor, so use random big number.
         $width = $this->mHeights * 10 + 100;
     }
     // self::SCALE_FACTOR so the js has some room to manipulate sizes.
     return array('width' => $width * self::SCALE_FACTOR, 'height' => $this->mHeights * self::SCALE_FACTOR);
 }