Don't SyncImage on entry to the PNG encoder if depth > 8 (lost transparency)
diff --git a/coders/png.c b/coders/png.c
index 8ce7ebb..8dea40f 100644
--- a/coders/png.c
+++ b/coders/png.c
@@ -7296,7 +7296,7 @@
Sometimes we get PseudoClass images whose RGB values don't match
the colors in the colormap. This code syncs the RGB values.
*/
- if (image->taint && image->storage_class == PseudoClass)
+ if (image->depth <= 8 && image->taint && image->storage_class == PseudoClass)
(void) SyncImage(image);
#if (MAGICKCORE_QUANTUM_DEPTH > 16)