Thanks Hussein - See below in blue. Darryl
----- Original Message ----- From: Hussein Shafie <huss...@xmlmind.com> Reply-To: 'xmleditor-support@xmlmind.com' <xmleditor-support@xmlmind.com> To: Darryl Young <darr...@bluestream.com> Cc: 'xmleditor-support@xmlmind.com' <xmleditor-support@xmlmind.com> Sent: 11/13/2017 9:52:36 AM Subject: Re: [XXE] PNG Images not displaying ________________________________________________________________________________ On 11/13/2017 02:13 PM, Darryl Young wrote: > > The problem with the "step" icons that is seen in the first screen shot > seems to be caused by our > vdrive addon somehow, since as soon as I install our addon, the step > icon problem reappears. Problem #1: our step icons (e.g. "addon/config/dita/css/icons/step.png") are not displayed when you install your XDocs add-on in XXE. [DY] Do you have any ideas as to where I might look for the interference being caused by our addon that seems to affect your step.png display? Problem #2: your own PNG images (that is, "image/*_sm.png") are never displayed by XXE and this is not related to your working environment. Therefore problem #1 and problem #2 do not seem to be related. > [DY] I have attached a zip of the sample content that I am using for the > test in case that would help you reproduce the issue on your end. > I tested the same file in Oxygen and the png displays correctly, so > there appears to be something about the png in our sample that XXE does > not like, but Oxygen tolerates. > Thanks to your sample, I easily reproduced problem #2 and I got more details: --- | java.lang.Thread.run(Thread.java:662) +--------------------------------------- CAUSE: javax.imageio.IIOException: Bad PNG signature! +--------------------------------------- | com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:234) | com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:63 | com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1212) | com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1560) | com.xmlmind.xmledit.imagetoolkit.JavaImageToolkit$1.createImage(JavaImageToolkit.java:202) ... --- In fact, all "image/*_sm.png" are JPEG images having a ".png" extension. (Their binary headers actually contain string "JFIF".) Simply renaming file "battery_icon_sm.png" to "battery_icon_sm.jpg" fixes the problem. Unlike oXygen, XXE relies on the file extension (when available) to select the "right" image loader. [DY] Thanks Hussein - I will ask the person who did our sample and get them to rectify this situation.
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support