Red Hat Bugzilla – Bug 977164
Issues with importing some .png files.
Last modified: 2015-08-09 21:23:17 EDT
Created attachment 764377 [details]
diagram-jcr-cluster which is the same file present in
Description of problem:
After importing some PNG files, the files seem to be missing a layer or two.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open Image file
2. Open the attached file of the original image
3. Observer results
Layers in the image preview are missing.
Layers in the image preview are present.
I have not yet included this image in a book build. I will insert it into the Development Guide and see if it is just the image preview that is the issue.
I can replicate this, however the issue is only in the UI preview, so I'm going to mark this as low priority for now. If you click the "View Image" button, it'll display the original image that will be included in any output.
Moving this to CCMS-Core, as the problem lies in an invalid Base64 string being created by the server when the image is created/updated.
Fixed in 1.1-SNAPSHOT 20130701-0911.
The problem was due to the way the Base64 encoded and thumbnail images were being created on the server. They were all being processed as a JPG, so if the image had transparency layers (ie a png), than they would be lost in the conversion like in the bug report.
Now all Base64 encoding is done on the original image, so it should always display the same as the uploaded content and thumbnails are processed based on the image type (ie JPG, GIF, PNG or SVG), with JPG being the default when the type can't be determined.
Note: This can only be verified on the dev-server at this stage (see image 2836 for the attached image). I've also ran a script to fix all old images that exist on the dev-server.