TheProjecter / eclipse-icons-editor

Automatically exported from code.google.com/p/eclipse-icons-editor
0 stars 0 forks source link

Save Failed: Unsupported color depth. Corrupted images #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Open attached image, modify it and save it. An error appears "Save Failed: 
Unsupported color depth" and the image get corrupted.
If we rename this image.gif to image.png, then there is no problem, so it is 
related with image formats.

org.eclipse.swt.SWTException: Unsupported color depth
    at org.eclipse.swt.SWT.error(SWT.java:4282)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.SWT.error(SWT.java:4168)
    at org.eclipse.swt.internal.image.GIFFileFormat.unloadIntoByteStream(GIFFileFormat.java:449)
    at org.eclipse.swt.internal.image.FileFormat.unloadIntoStream(FileFormat.java:122)
    at org.eclipse.swt.internal.image.FileFormat.save(FileFormat.java:110)
    at org.eclipse.swt.graphics.ImageLoader.save(ImageLoader.java:202)
    at org.eclipse.swt.graphics.ImageLoader.save(ImageLoader.java:243)
    at org.eclipse_icons.editor.utils.image.Utils.saveIconToFile(Utils.java:53)
    at org.eclipse_icons.editor.IconsEditorPart.performSave(IconsEditorPart.java:499)
    at org.eclipse_icons.editor.IconsEditorPart.doSave(IconsEditorPart.java:529)
    at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
    at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2649)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285)

Original issue reported on code.google.com by jabim...@gmail.com on 19 Mar 2013 at 10:02

Attachments:

GoogleCodeExporter commented 8 years ago
fixed in 2.2.2

Original comment by jabim...@gmail.com on 23 Mar 2013 at 2:03