Skip to content

Commit 3914151

Browse files
committed
Add auto-download for latest libjxl (0.10.3)
Relates to #579 . Thank you to @ZPNRG for reporting!
1 parent 13f8f50 commit 3914151

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Modules/Plugin_Management.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Private Const EXPECTED_EZTWAIN_VERSION As String = "1.18.0"
6464
Private Const EXPECTED_FREEIMAGE_VERSION As String = "3.19.0"
6565
Private Const EXPECTED_LIBAVIF_VERSION As String = "1.0.4"
6666
Private Const EXPECTED_LIBDEFLATE_VERSION As String = "1.20"
67-
Private Const EXPECTED_LIBJXL_VERSION As String = "0.10.0"
67+
Private Const EXPECTED_LIBJXL_VERSION As String = "0.10.3"
6868
Private Const EXPECTED_LITTLECMS_VERSION As String = "2.16.0"
6969
Private Const EXPECTED_LZ4_VERSION As String = "10904"
7070
Private Const EXPECTED_PDFIUM_VERSION As String = "126.0.6447"

Modules/Plugin_jxl.bas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ Public Function PromptForLibraryDownload_JXL(Optional ByVal targetIsImportLib As
819819
Set uiMsg = New pdString
820820
uiMsg.AppendLine g_Language.TranslateMessage("JPEG XL (JXL) is a modern replacement for the JPEG image format. PhotoDemon does not natively support JPEG XL images, but it can download a free, open-source plugin that adds JPEG XL support.")
821821
uiMsg.AppendLineBreak
822-
uiMsg.AppendLine g_Language.TranslateMessage("The libjxl library provides free, open-source JPEG XL compatibility. A portable copy of libjxl will require ~%1 mb of disk space. Once downloaded, PhotoDemon can use libjxl to load and save JPEG XL images (including animations).", 5)
822+
uiMsg.AppendLine g_Language.TranslateMessage("The libjxl library provides free, open-source JPEG XL compatibility. A portable copy of libjxl will require ~%1 mb of disk space. Once downloaded, PhotoDemon can use libjxl to load and save JPEG XL images (including animations).", 7)
823823
uiMsg.AppendLineBreak
824824
uiMsg.Append g_Language.TranslateMessage("Would you like PhotoDemon to download libjxl to your PhotoDemon plugin folder?")
825825

@@ -862,9 +862,9 @@ Private Function DownloadLatestLibjxl() As Boolean
862862
' - libjxl-LICENSE.txt (copyright and license info)
863863
Const EXPECTED_NUM_FILES As Long = 4
864864

865-
'Current libjxl build is 0.10.0, downloaded from https://github.com/libjxl/libjxl/releases/tag/v0.10.0
866-
Const EXPECTED_TOTAL_EXTRACT_SIZE As Long = 7624703
867-
Const UPDATE_URL As String = "https://github.com/tannerhelland/PhotoDemon-Updates-v2/releases/download/libjxl-plugins-0.10.0/libjxl-0.10.0.pdz"
865+
'Current libjxl build is 0.10.3, downloaded from https://github.com/libjxl/libjxl/releases/tag/v0.10.3
866+
Const EXPECTED_TOTAL_EXTRACT_SIZE As Long = 7634943
867+
Const UPDATE_URL As String = "https://github.com/tannerhelland/PhotoDemon-Updates-v2/releases/download/libjxl-plugins-0.10.3/libjxl-0.10.3.pdz"
868868
DownloadLatestLibjxl = Updates.DownloadPluginUpdate(CCP_libjxl, UPDATE_URL, EXPECTED_NUM_FILES, EXPECTED_TOTAL_EXTRACT_SIZE)
869869

870870
End Function

Modules/PublicConstants.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ End Enum
1414
'Quality of the current build. This value automatically dictates a number of behaviors throughout the program,
1515
' like reporting time-to-completion for effects and enabling detailed debug reports. Do not change unless you
1616
' fully understand the consequences!
17-
Public Const PD_BUILD_QUALITY As Long = PD_PRODUCTION
17+
Public Const PD_BUILD_QUALITY As Long = PD_ALPHA
1818

1919
'Identifier for various PD-specific file types
2020
Public Const PD_IMAGE_IDENTIFIER As Long = &H44494450 'pdImage data (ASCII characters "PDID", as hex, little-endian)

PhotoDemon.vbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ Description="PhotoDemon Photo Editor"
527527
CompatibleMode="0"
528528
MajorVer=2024
529529
MinorVer=8
530-
RevisionVer=5
530+
RevisionVer=6
531531
AutoIncrementVer=1
532532
ServerSupportFiles=0
533533
VersionComments="Copyright 2000-2024 Tanner Helland - photodemon.org"

0 commit comments

Comments
 (0)