diff --git a/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs b/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs index 1c95dff..06a8806 100644 --- a/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs +++ b/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs @@ -175,8 +175,8 @@ namespace FileConverter.ConversionJobs bool clampSizeToPowerOf2 = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageClampSizePowerOf2); if (clampSizeToPowerOf2) { - int referenceSize = System.Math.Min(image.Width, image.Height); - int size = 2; + uint referenceSize = System.Math.Min(image.Width, image.Height); + uint size = 2; while (size * 2 <= referenceSize) { size *= 2; @@ -190,11 +190,11 @@ namespace FileConverter.ConversionJobs if (this.ConversionPreset.IsRelevantSetting(ConversionPreset.ConversionSettingKeys.ImageMaximumSize)) { - int maximumSize = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageMaximumSize); + uint maximumSize = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageMaximumSize); if (maximumSize > 0) { - int width = System.Math.Min(image.Width, maximumSize); - int height = System.Math.Min(image.Height, maximumSize); + uint width = System.Math.Min(image.Width, maximumSize); + uint height = System.Math.Min(image.Height, maximumSize); Debug.Log($"Clamp size to maximum size of {width}x{width} (from {image.Width}x{image.Height} to {width}x{height})."); @@ -211,7 +211,7 @@ namespace FileConverter.ConversionJobs break; case OutputType.Jpg: - image.Quality = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageQuality); + image.Quality = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageQuality); break; case OutputType.Pdf: @@ -220,7 +220,7 @@ namespace FileConverter.ConversionJobs break; case OutputType.Webp: - image.Quality = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageQuality); + image.Quality = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageQuality); break; default: diff --git a/Application/FileConverter/FileConverter.csproj b/Application/FileConverter/FileConverter.csproj index 5999225..70979b3 100644 --- a/Application/FileConverter/FileConverter.csproj +++ b/Application/FileConverter/FileConverter.csproj @@ -384,13 +384,13 @@ - 8.2.2 + 8.4.0 - 13.5.0 + 14.4.0 - 8.0.0 + 9.0.2 15.0.4795.1000 @@ -402,7 +402,7 @@ 15.0.4797.1003 - 1.1.77 + 1.1.135 12.0.0 diff --git a/Middleware/ffmpeg/ffmpeg.exe b/Middleware/ffmpeg/ffmpeg.exe index 5626ea7..2f7e654 100644 Binary files a/Middleware/ffmpeg/ffmpeg.exe and b/Middleware/ffmpeg/ffmpeg.exe differ diff --git a/README.md b/README.md index 873e215..12b36cb 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,10 @@ Thanks to all the contributors of File Converter project. File converter uses the following middlewares: -**ffmpeg** (v6.1.1) as file conversion software. +**ffmpeg** (v7.1) as file conversion software. Thanks to ffmpeg devs for this awesome open source file conversion tool. [Web site link](https://ffmpeg.org) -**ImageMagick** (v13.5) as image edition and conversion software. +**ImageMagick** (v14.4) as image edition and conversion software. Thanks to image magick devs for this awesome open source image edition software suite. [Web site link](http://imagemagick.net) And thanks to dlemstra for the C# wrapper of this software. [Github link](https://github.com/ImageMagick/ImageMagick)