Skip to main content



      Home
Home » Modeling » Graphiti » Export as gif file failing
Export as gif file failing [message #763417] Fri, 09 December 2011 13:19 Go to next message
Eclipse UserFriend
Hey all...

We have a bug in the BPMN2 editor when we try to export the canvas as a gif file. Has anyone run into this before? Is there a workaround? Some way to remove gif from the list perhaps?

eclipse.buildId=I20100608-0911
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86 -product
org.eclipse.epp.package.jee.product

Error
Wed Mar 09 12:46:14 GMT 2011
Method 'startSaveAsImageDialog(graphicalViewer)': Can not save image:
Details: java.lang.Exception: Image contains more than 256 colors.
Automated color reduction is currently not supported.
at
org.eclipse.graphiti.ui.internal.services.impl.UiService.create8BitIndexedPaletteImage(UiService.java:108)
at
org.eclipse.graphiti.ui.internal.services.impl.UiService.createImage(UiService.java:65)
at
org.eclipse.graphiti.ui.internal.services.impl.UiService.startSaveAsImageDialog(UiService.java:160)
at
org.eclipse.graphiti.ui.internal.action.SaveImageAction.run(SaveImageAction.java:58)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Re: Export as gif file failing [message #764434 is a reply to message #763417] Mon, 12 December 2011 02:05 Go to previous message
Eclipse UserFriend
Brian,

that happens because Graphiti does not (yet) support color reduction to the maximum 256 colors GIF can take and your diagram probably uses more than these 256 colors, e.g. because you are using gradients.

There should be a popup being presented to the user not just the exception, so I would rather see this as missing functionality. Simply use another graphics format supporting more colors (BMP, JPG) to get your diagram exported.

Michael
Previous Topic:Copy & paste non-EMF business objects
Next Topic:Graphiti as Multiple Xml Editor
Goto Forum:
  


Current Time: Thu Jul 03 19:41:51 EDT 2025

Powered by FUDForum. Page generated in 0.02463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top