History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-330
Type: Bug Bug
Status: Closed Closed
Resolution: Not A Bug
Priority: Critical Critical
Assignee: dotCMS User
Reporter: Brad Rice
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotCMS

transparent png won't upload

Created: August 22, 2007 9:40 AM   Updated: March 18, 2010 3:03 PM
Component/s: a. Unknown
Affects Version/s: 1.5.0
Fix Version/s: None

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Time Spent - 15 minutes
Time Spent: 15 minutes
Time Spent - 15 minutes

File Attachments: None
Image Attachments:

1. leftRound.png
(0.5 kb)

2. leftRound.png
(0.3 kb)


 Description  « Hide
When we use Illustrator of Photoshop to create transparent 8 bit png files the File Upload will not upload the image. If we turn off transparency the file will upload.

 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jason Tesser - September 11, 2007 3:14 PM
Talked to Brad about Issue and it is pnly a Problem with Photoshop. He is using CS3.

Not an issue with Fireworks.

Maria Bouza - September 14, 2007 3:20 PM
Brad,

Can you please attach one file that is not working for you so we can use it to test?

Thanks
Maria

Brad Rice - September 14, 2007 3:34 PM
Sure, this is the one we were trying to upload the other day. I just tried
it again and it won't upload. We ended up flattening it and saving it as a
gif file to get it to upload. We would rather use png, and sometimes with
transparency.

Maria Bouza - September 17, 2007 11:14 AM
Brad,

I tested with your png and it didn't work. I got this error on the log:
java.lang.IllegalArgumentException: LUT has improper length!
        at javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:866)
        at javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:955)
        at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
        at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
        at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
        at javax.imageio.ImageIO.read(ImageIO.java:1400)
        at javax.imageio.ImageIO.read(ImageIO.java:1286)
  
I searched online and saw this in the Java Forums:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5098176

They have an issue with PNGs created with palettes of less than 32 coors.

They fixed it in Java 1.6. For now you can create your transparent PNGs with a bigger color palette and they should work. You can see we have another one attached to this task that worked for me.

Thanks
Maria

Maria Bouza - September 17, 2007 11:15 AM
It will be fixed once dotCMS is upgraded to use Java 1.6.
See comments above.