# HG changeset patch # User Matti Hamalainen # Date 1586187383 -10800 # Node ID 326935332784265b3ce3a317324804b2507398c6 # Parent 8fd5c850f9215287902d594c078cd37b91c3bdbc Remove from the XMP, as SimpleXML can't parse it. diff -r 8fd5c850f921 -r 326935332784 mgtool.php --- a/mgtool.php Mon Apr 06 17:23:02 2020 +0300 +++ b/mgtool.php Mon Apr 06 18:36:23 2020 +0300 @@ -332,6 +332,7 @@ // so we will crudely remove them with some regexes $xmpPatterns = [ + "/<\?xpacket\s+.*?\?>/", "/[a-zA-Z]+:/", "/\/[a-zA-Z]+:/", "/<\/?(Bag|Alt|Seq)>/" @@ -340,6 +341,7 @@ $xmpReplacements = [ "", + "", "\/", "", ];