Skip to content

Commit b8772d5

Browse files
committed
Updated ImageMagick, plus multiple bug fixes
1 parent 628fc1c commit b8772d5

19 files changed

+122
-79
lines changed

Resources/commandDictionary.plist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,13 @@
821821
<string></string>
822822
<string>file</string>
823823
</array>
824+
<key>magick</key>
825+
<array>
826+
<string>magick.framework/magick</string>
827+
<string>main</string>
828+
<string></string>
829+
<string>file</string>
830+
</array>
824831
<key>magick-script</key>
825832
<array>
826833
<string>magick.framework/magick</string>

Resources_mini/commandDictionary.plist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,13 @@
814814
<string></string>
815815
<string>file</string>
816816
</array>
817+
<key>magick</key>
818+
<array>
819+
<string>magick.framework/magick</string>
820+
<string>main</string>
821+
<string></string>
822+
<string>file</string>
823+
</array>
817824
<key>magick-script</key>
818825
<array>
819826
<string>magick.framework/magick</string>

a-Shell.xcodeproj/project.pbxproj

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,7 @@
21182118
22DE173D2653DC960031A029 /* make.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = make.xcframework; path = xcfs/.build/artifacts/xcfs/make.xcframework; sourceTree = SOURCE_ROOT; };
21192119
22DF4FEE26E25AEA00E5A0F5 /* texmf.cnf */ = {isa = PBXFileReference; lastKnownFileType = text; name = texmf.cnf; path = Resources/texmf.cnf; sourceTree = "<group>"; };
21202120
22E1B539243DF63E00EA8FBD /* require.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = require.js; sourceTree = "<group>"; };
2121+
22E2F7E62CD67C5C0079534C /* iwasm.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = iwasm.framework; path = xcfs/.build/artifacts/xcfs/iwasm.framework; sourceTree = "<group>"; };
21212122
22E337EB2949F4CD00A8F76C /* defaultToolbar.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = defaultToolbar.txt; sourceTree = "<group>"; };
21222123
22E9F57D2558468E00673D11 /* network_ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = network_ios.xcframework; path = xcfs/.build/artifacts/xcfs/network_ios.xcframework; sourceTree = SOURCE_ROOT; };
21232124
22E9F583255846A500673D11 /* lua_ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = lua_ios.xcframework; path = xcfs/.build/artifacts/xcfs/lua_ios.xcframework; sourceTree = SOURCE_ROOT; };
@@ -2697,6 +2698,7 @@
26972698
22B1B80D22CB9A5A00F7C452 /* Frameworks */ = {
26982699
isa = PBXGroup;
26992700
children = (
2701+
22E2F7E62CD67C5C0079534C /* iwasm.framework */,
27002702
220F18872C7C81D7007090F8 /* blink.xcframework */,
27012703
2224F2A42C24909400E0BA40 /* rclone.framework */,
27022704
227318AC28F02E170027A736 /* multimarkdown.framework */,
@@ -3567,7 +3569,7 @@
35673569
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
35683570
CODE_SIGN_IDENTITY = "Apple Development";
35693571
CODE_SIGN_STYLE = Automatic;
3570-
CURRENT_PROJECT_VERSION = 422;
3572+
CURRENT_PROJECT_VERSION = 440;
35713573
DEAD_CODE_STRIPPING = NO;
35723574
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
35733575
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3588,7 +3590,7 @@
35883590
"$(SDKROOT)/usr/lib/swift",
35893591
"$(PROJECT_DIR)/Frameworks",
35903592
);
3591-
MARKETING_VERSION = 1.15.2;
3593+
MARKETING_VERSION = 1.15.9;
35923594
OTHER_LDFLAGS = (
35933595
"-L",
35943596
Frameworks/,
@@ -3618,7 +3620,7 @@
36183620
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
36193621
CODE_SIGN_IDENTITY = "Apple Development";
36203622
CODE_SIGN_STYLE = Automatic;
3621-
CURRENT_PROJECT_VERSION = 422;
3623+
CURRENT_PROJECT_VERSION = 440;
36223624
DEAD_CODE_STRIPPING = NO;
36233625
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
36243626
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3639,7 +3641,7 @@
36393641
"$(SDKROOT)/usr/lib/swift",
36403642
"$(PROJECT_DIR)/Frameworks",
36413643
);
3642-
MARKETING_VERSION = 1.15.2;
3644+
MARKETING_VERSION = 1.15.9;
36433645
OTHER_LDFLAGS = (
36443646
"-L",
36453647
Frameworks/,
@@ -3792,7 +3794,7 @@
37923794
CLANG_ENABLE_MODULES = YES;
37933795
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
37943796
CODE_SIGN_STYLE = Automatic;
3795-
CURRENT_PROJECT_VERSION = 433;
3797+
CURRENT_PROJECT_VERSION = 443;
37963798
DEAD_CODE_STRIPPING = NO;
37973799
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
37983800
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3816,7 +3818,7 @@
38163818
"$(SDKROOT)/usr/lib/swift",
38173819
"$(PROJECT_DIR)/Frameworks",
38183820
);
3819-
MARKETING_VERSION = 1.15.7;
3821+
MARKETING_VERSION = 1.15.9;
38203822
OTHER_LDFLAGS = (
38213823
"-L",
38223824
Frameworks/,
@@ -3842,7 +3844,7 @@
38423844
CLANG_ENABLE_MODULES = YES;
38433845
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
38443846
CODE_SIGN_STYLE = Automatic;
3845-
CURRENT_PROJECT_VERSION = 433;
3847+
CURRENT_PROJECT_VERSION = 443;
38463848
DEAD_CODE_STRIPPING = NO;
38473849
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
38483850
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3866,7 +3868,7 @@
38663868
"$(SDKROOT)/usr/lib/swift",
38673869
"$(PROJECT_DIR)/Frameworks",
38683870
);
3869-
MARKETING_VERSION = 1.15.7;
3871+
MARKETING_VERSION = 1.15.9;
38703872
OTHER_LDFLAGS = (
38713873
"-L",
38723874
Frameworks/,
@@ -3891,7 +3893,7 @@
38913893
CLANG_ENABLE_MODULES = YES;
38923894
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
38933895
CODE_SIGN_STYLE = Automatic;
3894-
CURRENT_PROJECT_VERSION = 433;
3896+
CURRENT_PROJECT_VERSION = 443;
38953897
DEAD_CODE_STRIPPING = NO;
38963898
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
38973899
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3914,7 +3916,7 @@
39143916
"$(SDKROOT)/usr/lib/swift",
39153917
"$(PROJECT_DIR)/Frameworks",
39163918
);
3917-
MARKETING_VERSION = 1.15.7;
3919+
MARKETING_VERSION = 1.15.9;
39183920
OTHER_CODE_SIGN_FLAGS = "";
39193921
OTHER_LDFLAGS = (
39203922
"-L",
@@ -3945,7 +3947,7 @@
39453947
CLANG_ENABLE_MODULES = YES;
39463948
CODE_SIGN_ENTITLEMENTS = "a-Shell/a-Shell.entitlements";
39473949
CODE_SIGN_STYLE = Automatic;
3948-
CURRENT_PROJECT_VERSION = 433;
3950+
CURRENT_PROJECT_VERSION = 443;
39493951
DEAD_CODE_STRIPPING = NO;
39503952
DEVELOPMENT_ASSET_PATHS = "a-Shell/Preview\\ Content";
39513953
DEVELOPMENT_TEAM = VG8Z23C8YL;
@@ -3968,7 +3970,7 @@
39683970
"$(SDKROOT)/usr/lib/swift",
39693971
"$(PROJECT_DIR)/Frameworks",
39703972
);
3971-
MARKETING_VERSION = 1.15.7;
3973+
MARKETING_VERSION = 1.15.9;
39723974
OTHER_CODE_SIGN_FLAGS = "";
39733975
OTHER_LDFLAGS = (
39743976
"-L",

a-Shell/AppDelegate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
430430
// Also notification if user changes accessibility settings:
431431
NotificationCenter.default.addObserver(self, selector: #selector(self.voiceOverChanged), name: UIAccessibility.voiceOverStatusDidChangeNotification, object: nil)
432432
if #available(iOS 17.0, *) {
433+
// For debugging tips (either one):
434+
// try? Tips.resetDatastore()
435+
// Tips.showAllTipsForTesting()
433436
// No frequency control. Show all tips as soon as eligible (but only once)
434437
try? Tips.configure([.displayFrequency(.immediate)])
435438
}

a-Shell/SceneDelegate.swift

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,7 +3072,7 @@ class SceneDelegate: UIViewController, UIWindowSceneDelegate, WKNavigationDelega
30723072
var mustUpdateXz = false
30733073
if (FileManager().fileExists(atPath: xzPath)) {
30743074
do {
3075-
let xzFileSize = try FileManager().attributesOfItem(atPath: unzipPath)[.size] as! UInt64
3075+
let xzFileSize = try FileManager().attributesOfItem(atPath: xzPath)[.size] as! UInt64
30763076
if (xzFileSize != 196301) {
30773077
mustUpdateXz = true
30783078
}
@@ -3101,7 +3101,7 @@ class SceneDelegate: UIViewController, UIWindowSceneDelegate, WKNavigationDelega
31013101
// reset, so that we don't send it twice:
31023102
windowPrintedContent = ""
31033103
// scroll to the bottom of the webview: https://stackoverflow.com/questions/51659208/how-to-programmatically-scroll-ios-wkwebview-swift-4
3104-
let scrollPoint = CGPoint(x: 0, y: webView!.scrollView.contentSize.height - webView!.frame.size.height)
3104+
let scrollPoint = CGPoint(x: 0, y: max(webView!.scrollView.contentSize.height - webView!.frame.size.height, 0))
31053105
webView?.scrollView.setContentOffset(scrollPoint, animated: true)
31063106
} else {
31073107
NSLog("commandRunning= \(currentCommand)")
@@ -3361,6 +3361,13 @@ class SceneDelegate: UIViewController, UIWindowSceneDelegate, WKNavigationDelega
33613361
let rootVC = self.window?.rootViewController
33623362
rootVC?.present(controller, animated: false)
33633363
}
3364+
} else {
3365+
let rootVC = self.window?.rootViewController
3366+
if let controller = rootVC?.presentedViewController {
3367+
if controller is TipUIPopoverViewController {
3368+
controller.dismiss(animated: false)
3369+
}
3370+
}
33643371
}
33653372
}
33663373
}
@@ -5528,7 +5535,7 @@ extension SceneDelegate: WKUIDelegate {
55285535

55295536
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
55305537
// NSLog("finished loading, title= \(webView.title ?? "unknown"), url=\(webView.url?.path ?? "unknown"), navigation= \(navigation)")
5531-
if (webView.url?.path == Bundle.main.resourcePath! + "/wasm.html") {
5538+
if (webView.url?.path == "/wasm.html") {
55325539
return
55335540
}
55345541
if (webView.title != nil) && (webView.title != "") {
@@ -5574,6 +5581,13 @@ extension SceneDelegate: WKUIDelegate {
55745581
controller.popoverPresentationController?.canOverlapSourceViewRect = true
55755582
let rootVC = self.window?.rootViewController
55765583
rootVC?.present(controller, animated: false)
5584+
} else {
5585+
let rootVC = self.window?.rootViewController
5586+
if let controller = rootVC?.presentedViewController {
5587+
if controller is TipUIPopoverViewController {
5588+
controller.dismiss(animated: false)
5589+
}
5590+
}
55775591
}
55785592
}
55795593
}

a-Shell/Tips.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ struct toolbarTip: Tip {
3535
Text("")
3636
}
3737

38-
var options: [TipOption] = [MaxDisplayCount(1)]
38+
var options: [TipOption] = [MaxDisplayCount(1)]
3939
}

man/man1/ImageMagick.1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ times to the same or different image. For these types of operations, a
5858
command-line utility is more suitable.
5959

6060
The remaining of this manpage is a list of the available command-line utilities
61-
and their short descriptions. For further documentation conserning a
61+
and their short descriptions. For further documentation concerning a
6262
particular command and its options, consult the corresponding manpage. If you
63-
are just getting aquainted with ImageMagick, start at the top of that list, the
63+
are just getting acquainted with ImageMagick, start at the top of that list, the
6464
magick(1) program, and work your way down. Also, make sure to check out Anthony
6565
Thyssen's tutorial on how to use ImageMagick utilities to convert, compose, or
6666
edit images from the command-line.
@@ -77,11 +77,11 @@ a file or pipeline.
7777
This command is similar to magick(1) but with an implied "-script" option. It
7878
is useful in special "#!/usr/bin/env magick-script" scripts that search for the
7979
magick-script(1) command anywhere along the users PATH, rather than in a
80-
hardcorded command location.
80+
hardcoded command location.
8181

8282
.TP
8383
.B convert
84-
Available for Backward compatiblity with ImageMagick's version 6 convert(1).
84+
Available for Backward compatibility with ImageMagick's version 6 convert(1).
8585
Essentially, it is just an alias to a restrictive form of the magick(1)
8686
command, which should be used instead.
8787

@@ -137,6 +137,7 @@ Interpret and execute scripts written in the Magick Scripting Language (MSL).
137137

138138
.PP
139139
For more information about the ImageMagick, point your browser to
140+
file:///usr/local/share/doc/ImageMagick-7/index.html or
140141
https://imagemagick.org/.
141142

142143
.SH SEE ALSO
@@ -157,6 +158,7 @@ MagickCore-config(1),
157158
MagickWand-config(1)
158159

159160
.SH COPYRIGHT
160-
\fBCopyright (C) 1999-2020 ImageMagick Studio LLC.\fP
161-
162-
Additional copyrights and licenses apply to this software, see $APPDIR/ImageMagick-7/doc/LICENSE or http://imagemagick.org/script/license.php
161+
\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and
162+
licenses apply to this software, see
163+
file:///usr/local/share/doc/ImageMagick-7/www/license.html or
164+
https://imagemagick.org/script/license.php\fP

man/man1/compare.1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
compare \- mathematically and visually annotate the difference between an image and its reconstruction.
44
.SH SYNOPSIS
55
.TP
6-
\fBcompare\fP \fIinput-file\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
6+
\fBmagick compare\fP \fIinput-file\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
77
.SH OVERVIEW
88
The \fBcompare\fP program is a member of the ImageMagick(1) suite of tools. Use it to mathematically and visually annotate the difference between an image and its reconstruction.
99

10-
For more information about the compare command, point your browser to http://imagemagick.org/script/compare.php.
10+
For more information about the compare command, point your browser to file:///usr/local/share/doc/ImageMagick-7/www/compare.html or https://imagemagick.org/script/compare.php.
1111
.SH DESCRIPTION
1212
Image Settings:
1313
\-alpha option on, activate, off, deactivate, set, opaque, copy
@@ -66,6 +66,7 @@ Image Settings:
6666
virtual pixel access method
6767

6868
Image Operators:
69+
\-auto-orient automatically orient image
6970
\-brightness-contrast geometry
7071
improve brightness / contrast of the image
7172
\-distort method args
@@ -105,6 +106,4 @@ ImageMagick(1)
105106

106107
.SH COPYRIGHT
107108

108-
\fBCopyright (C) 1999-2020 ImageMagick Studio LLC.\fP
109-
110-
Additional copyrights and licenses apply to this software, see $APPDIR/ImageMagick-7/doc/LICENSE or http://imagemagick.org/script/license.php
109+
\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-7/www/license.html or https://imagemagick.org/script/license.php\fP

man/man1/composite.1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
composite \- overlaps one image over another.
44
.SH SYNOPSIS
55
.TP
6-
\fBcomposite\fP \fB[\fP \fIoptions\fP \fB... ]\fP \fIchange-file base-file\fP \fB[\fP \fImask-file\fP \fB]\fP \fIoutput-image\fP
6+
\fBmagick composite\fP \fB[\fP \fIoptions\fP \fB... ]\fP \fIchange-file base-file\fP \fB[\fP \fImask-file\fP \fB]\fP \fIoutput-image\fP
77
.SH OVERVIEW
88
The \fBcomposite\fP program is a member of the ImageMagick(1) suite of tools. Use it to overlap one image over another.
99

10-
For more information about the composite command, point your browser to http://imagemagick.org/script/composite.php.
10+
For more information about the composite command, point your browser to file:///usr/local/share/doc/ImageMagick-7/www/composite.html or https://imagemagick.org/script/composite.php.
1111
.SH DESCRIPTION
1212
Image Settings:
1313
\-affine matrix affine transform matrix
@@ -113,6 +113,4 @@ ImageMagick(1)
113113

114114
.SH COPYRIGHT
115115

116-
\fBCopyright (C) 1999-2020 ImageMagick Studio LLC.\fP
117-
118-
Additional copyrights and licenses apply to this software, see $APPDIR/ImageMagick-7/doc/LICENSE or http://imagemagick.org/script/license.php
116+
\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-7/www/license.html or https://imagemagick.org/script/license.php\fP

man/man1/conjure.1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
conjure \- interprets and executes scripts written in the Magick Scripting Language (MSL).
44
.SH SYNOPSIS
55
.TP
6-
\fBconjure\fP [\fIoptions\fP] \fIscript.msl\fP
6+
\fBmagick conjure\fP [\fIoptions\fP] \fIscript.msl\fP
77
.SH OVERVIEW
88
The \fBconjure\fP program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Magick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program, or those that do not have access to a Perl interpreter or a compiler.
99

10-
For more information about the conjure command, point your browser to http://imagemagick.org/script/conjure.php.
10+
For more information about the conjure command, point your browser to file:///usr/local/share/doc/ImageMagick-7/www/conjure.html or https://imagemagick.org/script/conjure.php.
1111
.SH DESCRIPTION
1212
Image Settings:
1313
\-monitor monitor progress
@@ -23,13 +23,12 @@ Miscellaneous Options:
2323
\-list type print a list of supported option arguments
2424
\-version print version information
2525

26-
In additiion, define any key value pairs required by your script. For example,
26+
In addition, define any key value pairs required by your script. For example,
2727

2828
conjure \-size 100x100 \-color blue \-foo bar script.msl
2929
.SH SEE ALSO
3030
ImageMagick(1)
3131

3232
.SH COPYRIGHT
33-
\fBCopyright (C) 1999-2020 ImageMagick Studio LLC.\fP
3433

35-
Additional copyrights and licenses apply to this software, see $APPDIR/ImageMagick-7/doc/LICENSE or http://imagemagick.org/script/license.php
34+
\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-7/www/license.html or https://imagemagick.org/script/license.php\fP

0 commit comments

Comments
 (0)