diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 450b7bd..7f46202 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -136,7 +136,7 @@ class _HomeScreenState extends State { _files.addAll( foundFiles.where(filenameExtensionIsImage).map((f) { final String extension = - getFileExtension(f) == 'jpg' ? 'jpeg' : 'jpeg'; + getFileExtension(f) == 'jpg' ? 'jpeg' : getFileExtension(f); return ImageFile( name: basename(f.path), path: f.path, diff --git a/lib/tools/tools.dart b/lib/tools/tools.dart index 816a316..055e336 100644 --- a/lib/tools/tools.dart +++ b/lib/tools/tools.dart @@ -54,12 +54,14 @@ Future doConvert( ? ['-j', '0'] : ['-j', '1']; - final ProcessResult result = await Process.run('cjxl', [ + final List arguments = [ sourcePath, outPath, ...losslessJpeg, ...distance, - ]); + ]; + + final ProcessResult result = await Process.run('cjxl', arguments); if (result.exitCode == 0) { final File inFile = File(sourcePath); diff --git a/pubspec.yaml b/pubspec.yaml index 37a1836..2620e0c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.3.0+1 +version: 0.3.1+1 environment: sdk: '>=3.0.6 <4.0.0'