getResultExtension() public method

* Get the extension that the result of this conversion must have.
public getResultExtension ( string $originalFileExtension = '' ) : string
$originalFileExtension string
return string
 public function getPathRelativeToRoot() : string
 {
     if (is_null($this->conversion)) {
         return $this->pathGenerator->getPath($this->media) . $this->media->file_name;
     }
     return $this->pathGenerator->getPathForConversions($this->media) . $this->conversion->getName() . '.' . $this->conversion->getResultExtension($this->media->extension);
 }
 /**
  * Get the path to the requested file relative to the root of the media directory.
  *
  * @return string
  */
 public function getPathRelativeToRoot()
 {
     $path = $this->media->id;
     if (is_null($this->conversion)) {
         return $path . '/' . $this->media->file_name;
     }
     return $path . '/conversions/' . $this->conversion->getName() . '.' . $this->conversion->getResultExtension($this->media->extension);
 }