public function convert($img, $outputFormat, $targetPath, $quality = null)
    {
        ImageFile::save(
            $targetPath,
            ImageFile::get($img),
            ImageFile::getType($img, $outputFormat),
            $quality
        );
    }