From 7a9089ed8988755fd8a28cb6fa84d4a563d28669 Mon Sep 17 00:00:00 2001 From: Edward Hsu Date: Fri, 20 Dec 2024 00:16:34 +0800 Subject: [PATCH 1/2] feat: Update cli download url --- src/WebPWrapper/WebPExecuteDownloader.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WebPWrapper/WebPExecuteDownloader.cs b/src/WebPWrapper/WebPExecuteDownloader.cs index d4171b6..05fd977 100644 --- a/src/WebPWrapper/WebPExecuteDownloader.cs +++ b/src/WebPWrapper/WebPExecuteDownloader.cs @@ -16,16 +16,16 @@ namespace WebPWrapper public static class WebPExecuteDownloader { public const string WELL_KNOWN_WINDOWS_CLI_URL = - "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.3.2-windows-x64.zip"; + "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.4.0-windows-x64.zip"; public const string WELL_KNOWN_LINUX_CLI_URL = - "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.3.2-linux-x86-64.tar.gz"; + "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.4.0-linux-x86-64.tar.gz"; public const string WELL_KNOWN_OSX_CLI_URL = - "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.3.2-mac-x86-64.tar.gz"; + "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.4.0-mac-x86-64.tar.gz"; public const string WELL_KNOWN_OSX_ARM_CLI_URL = - "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.3.2-mac-arm64.tar.gz"; + "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.4.0-mac-arm64.tar.gz"; /// /// Download CLI binary file. From e22d940ceb5ef7b5486418c3e8e795c56edecae5 Mon Sep 17 00:00:00 2001 From: Edward Hsu Date: Fri, 20 Dec 2024 00:27:17 +0800 Subject: [PATCH 2/2] feat: Update default paths to point to libwebp version 1.4.0 --- .gitignore | 1 + src/WebPWrapper/Decoder/WebPDecoderBuilder.cs | 8 ++++---- src/WebPWrapper/Encoder/WebPEncoderBuilder.cs | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index b7aa456..9b68b8a 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,4 @@ healthchecksdb # Backup folder for Package Reference Convert tool in Visual Studio 2017 MigrationBackup/ .vscode +src/.idea diff --git a/src/WebPWrapper/Decoder/WebPDecoderBuilder.cs b/src/WebPWrapper/Decoder/WebPDecoderBuilder.cs index e64254a..f9bf53c 100644 --- a/src/WebPWrapper/Decoder/WebPDecoderBuilder.cs +++ b/src/WebPWrapper/Decoder/WebPDecoderBuilder.cs @@ -17,10 +17,10 @@ public class WebPDecoderBuilder : IWebPDecoderBuilder { private string _executeFilePath; // Default CLI path. (If Cli downloaded by WebPExecuteDownloader. - public const string _windowsDir = "libwebp-1.3.2-windows-x64"; - public const string _linuxDir = "libwebp-1.3.2-linux-x86-64"; - public const string _osxDir = "libwebp-1.3.2-mac-x86-64"; - public const string _osxARMDir = "libwebp-1.3.2-mac-arm64"; + public const string _windowsDir = "libwebp-1.4.0-windows-x64"; + public const string _linuxDir = "libwebp-1.4.0-linux-x86-64"; + public const string _osxDir = "libwebp-1.4.0-mac-x86-64"; + public const string _osxARMDir = "libwebp-1.4.0-mac-arm64"; /// /// Create diff --git a/src/WebPWrapper/Encoder/WebPEncoderBuilder.cs b/src/WebPWrapper/Encoder/WebPEncoderBuilder.cs index 093909d..8c8e1a2 100644 --- a/src/WebPWrapper/Encoder/WebPEncoderBuilder.cs +++ b/src/WebPWrapper/Encoder/WebPEncoderBuilder.cs @@ -17,10 +17,10 @@ public class WebPEncoderBuilder : IWebPEncoderBuilder { private string _executeFilePath; - public const string _windowsDir = "libwebp-1.3.2-windows-x64"; - public const string _linuxDir = "libwebp-1.3.2-linux-x86-64"; - public const string _osxDir = "libwebp-1.3.2-mac-x86-64"; - public const string _osxARMDir = "libwebp-1.3.2-mac-arm64"; + public const string _windowsDir = "libwebp-1.4.0-windows-x64"; + public const string _linuxDir = "libwebp-1.4.0-linux-x86-64"; + public const string _osxDir = "libwebp-1.4.0-mac-x86-64"; + public const string _osxARMDir = "libwebp-1.4.0-mac-arm64"; /// /// Create ///