Bug 977164 - Issues with importing some .png files.
Summary: Issues with importing some .png files.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CCMS-Core
Version: 1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 1.1
Assignee: Lee Newson
QA Contact: Jared MORGAN
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 00:36 UTC by Jared MORGAN
Modified: 2015-08-10 01:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-08 02:11:47 UTC
Embargoed:


Attachments (Terms of Use)
diagram-jcr-cluster which is the same file present in (58.85 KB, image/png)
2013-06-24 00:36 UTC, Jared MORGAN
no flags Details

Description Jared MORGAN 2013-06-24 00:36:50 UTC
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):

pressgang-next UI

How reproducible:

100%

Steps to Reproduce:
1. Open Image file 
2. Open the attached file of the original image
3. Observer results

Actual results:

Layers in the image preview are missing.

Expected results:

Layers in the image preview are present.

Additional info:

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.

Comment 1 Lee Newson 2013-07-04 03:04:39 UTC
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.

Comment 2 Lee Newson 2013-07-04 03:31:54 UTC
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.

Comment 3 Lee Newson 2013-07-16 04:53:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.