remove file extension from path dart
var fileToCompressPath = fileToCompress.absolute.path;
final fileFormat = fileToCompressPath.substring(fileToCompressPath.lastIndexOf('.'));
fileToCompressPath = fileToCompressPath.replaceAll(fileFormat, '');