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

Key: GLIFFY-42
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: The ChrisK Admin User
Reporter: Chris Kohlhardt
Votes: 0
Watchers: 0
Operations

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

Enable PNG as default image format for diagrams shown in wiki pages

Created: 13/Nov/07 06:14 PM   Updated: 16/Mar/08 09:31 AM
Component/s: Confluence Plugin Integration
Affects Version/s: None
Fix Version/s: None
Security Level: Anyone may view

File Attachments: None
Image Attachments:

1. Dirty+Colors.jpg
(26 kb)

2. Dirty+Colors.png
(7 kb)

3. ViewEditor.png
(32 kb)
Issue Links:
Related
 


 Description  « Hide
Migrating from http://developer.atlassian.com/jira/browse/GLFY-26

PNG images seem to produce better quality diagrams in some cases.

This enhancement would either involve switching away from JPG completely, or making this a configurable choice in the plugin administration.

---History copied from old issue –

Chris Kohlhardt - 03/Apr/07 01:20 PM
Compare original diagram in editor with JPG and PNG versions.

Martin Blazek - 22/Apr/07 04:55 PM
Just a small correction of Description of this issue; PNG produces better quality images in ALL cases (compared to JPG). While JPG is a lossy format suitable primarily for photos, PNG is lossless and much more suitable for diagrams (i.e., more suitable for Gliffy).
Replacing JPG with PNG would be really great. Voting on this. Cheers!



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Chris Kohlhardt - 09/Jan/08 08:10 PM
The Gliffy infrastructure already supports PNG images, but The Gliffy Plugin for Confluence is currently using JPEG by default.

The solve this problem, we'll want to:

  • Update the struts action which generates the actual image so that a parameter can be passed in to determine the output format (PNG or JPEG)
  • Make sure we are backward compatible in case anyone is expecting the JPEG format by default. In other words, if no output format is specified, we should fallback to JPEG.
  • Modify Macro.java, RemoveDiagramAction.java and ViewLargeDiagramAction.java so that they all point to the PNG version of the diagram.

Chris Kohlhardt - 26/Feb/08 05:55 PM
In the current architecture, we transcode our Gliffy XML format to SVG, and then to JPG. Unfortunately, the layout of text doesn't work very well, and the image quality also ends up suffering.

Yesterday I learned (thx to Peldi @ Balsamic) that in a Flash SWF9 object, it's possible to export the image data on the client, and in turn upload that image data to the server. The results look fantastic, and will likely resolve a lot of the image export issues we've had (perhaps even the UTF issue). The only trouble is that Laszlo doesn't yet compile to SWF9 format. Laszlo is actively working on SWF 9 support, so hopefully we'll be able to wrap these issues up soon.


Chris Kohlhardt - 26/Feb/08 05:56 PM
BTW, we'll likely standardize on PNG once the above issues are resolved, as PNG is clearly better.