Remove `transparent` from info dict in asDirect()

GitOrigin-RevId: 4ad4dfc83901ebe97272d4edd03d5917bccc8325
Change-Id: I31c835c7a74ef85a1707f6cc50c8bbca4b702ebb
diff --git a/README.md b/README.md
index 97cf18e..d76403a 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,14 @@
 
 ### Release (the next)
 
+Fix `pricolpng` and `prirowpng` so that
+they can process PNG files with transparency (`tRNS` chunk).
+This involved:
+
+Fix `Reader.asDirect()` so that `transparent` is removed from
+the `info` dict; previously passing such an `info` dict to
+`png.Writer()` would raise an exception.
+
 
 ### Release 0.20231004.0
 
diff --git a/code/png.py b/code/png.py
index d26ab06..10766d2 100755
--- a/code/png.py
+++ b/code/png.py
@@ -2033,6 +2033,7 @@
             planes = info['planes']
             info['alpha'] = True
             info['planes'] += 1
+            del info['transparent']
             typecode = 'BH'[info['bitdepth'] > 8]
 
             def itertrns(pixels):