Community
Participate
Working Groups
Build ID: 3.4.1 Now "Export Diagram as Image" function creates image in JPEG format. This format best suited for photos but not for diagrams and texts. As result, exported diagram has "noise" because of JPEG`s quality loss effect. Please change format of exported image to GIF or PNG. Those formats has no quality loss effect.
Amy, we may want to consider this for the WSDL editor as well.
I've been experimenting a bit and it seems to me we should be able to do png quite easily. There is a SWT.IMAGE_PNG format and the associated org.eclipse.swt.internal.image.PNGFileFormat will be used when saving. GIF is another story. There is a org.eclipse.swt.internal.image.GIFFileFormat. We would need to reduce the color depth of the in memory image to one of the color depths supported by GIFs (2, 4 or 8 bits per pixel) - the GIFFileFormat will complain otherwise.
Created attachment 117155 [details] Patch Note that even though the constants for these formats were already being referenced in the image export utility, in the code a verification was made to ensure that only supported formats are selected. After a talk with Valentin and a set of tests, it has been verified that PNG and TIF formats are now supported, although as mentioned in the previous comment, the GIF format is not. The attached patch incorporates the supported formats. It also incorporates an improvement on file name character case handling that Valentin spotted, to ensure that the user can choose to write file extensions using lower and upper case letters. Note that this code is shared between the XML Schema editor and the WSDL editor, so applying this patch will resolve the issue on both tools.
Thank you Gabriel. Let's try to test this on Linux too to make sure all is good. Keith, let's this patch committed/released for M4.
Just noticed that the year part of the copyright will have to be updated.
TIFF doesn't seem to be supported with this fix. I have removed the relevant sections from the patch.
Checked in for 3.1 M4.
Verified in wtp-sdk-S-3.1M4-20081215095735.
Closing.