Depicter

March 8, 2008

Depicter PDF export

Filed under: depicter — Dan Muresan @ 11:26 am

Depicter can now export vector drawings in PDF format. We’re using Apache FOP to handle the conversion.

June 26, 2007

Safari gets SVG

Filed under: svg — Dan Muresan @ 12:48 pm

Apple has released Safari 3 beta, and it features SVG support. This means that your SVG apps will become usable by another 4-5% of the Internet surfers (or, depending on your audience, a lot more than that, as Safari dominates the Mac browser market). Two other nice features that have caught my attention are tab drag-and-drop and textbox resizing (for those poorly designed web forms).

On a related note, Safari for Windows is sadly getting bad reports thus far (sadly because I think we’ve gone from an IE monoculture to a FF/IE duopoly, and I’d love to see more competition among browsers).

April 3, 2007

Batik is alive

Filed under: depicter, svg — Dan Muresan @ 10:03 am

After almost two years of silence, Apache Batik has released version 1.7 beta 1. Depicter uses Batik internally, and one of the changes that seems interesting is the updated PDF transcoder (which we hope to use to export diagrams to PDF; we’re still playing with it).

January 18, 2007

FooPlot.com SVG-based graphing calculator

Filed under: graphics, svg — Dan Muresan @ 4:07 pm

Fooplot.com is a nice graphing calculator that uses the browser’s native SVG (in Firefox and Opera) or VML (in IE) to display function graphs. FooPlot can save to EPS, PDF, PNG, or SVG (though it seems to generate a broken SVG 1.1 DTD, which stops Squiggle in its tracks; Inkscape continues past the error). A nice touch is that you can embed the function to be graphed directly in the URL (http://fooplot.com/x^2+2*x+1).

There is another SVG-based graphing calculator, but it’s a Firefox extension (which may or may not be more convenient, depending on your location and browser of choice).

December 20, 2006

RaveGrid raster to vector image conversion

Filed under: graphics, svg — Dan Muresan @ 1:27 pm

The LANL Tech Transfer Division has released RaveGrid, an image vectorization and segmentation application. A free version is available (a quick 2.1M download), which is supposedly more limited than the non-commercial and commercial licenses (though I wasn’t able to determine what those limitations were). As far as performance,

On a Pentium 2.13 GHz M processor with 2 GB RAM, this version vectorizes images at an average rate of 0.55 mega pixels per second.

The free alternatives are, of course, potrace and autotrace (and see this comparison).

November 22, 2006

Open jACOB Draw2D

Filed under: graphics, javascript, diagrams — Dan Muresan @ 11:59 am

Andreas Herz has added diagramming features (connectors, ports, tool selection) on top of Walter Zorn’s famous DHTML graphics library to create Open jACOB Draw2D. There are several interactive demos that let you create simple diagrams. There is also javadoc style documentation (though it mostly documents the class hierarchy).

I think a discussion of the underlying wz_jsgraphics library (which Depicter.com currently also uses) is in order. First of all, the good: this approach works in all Javascript-enabled browsers (in particular, Flash is not needed). But wz_jsgraphics is rather inflexible: it’s merely a compiler for a few graphics primitives (lines, filled rectangles and XY-alligned ellipses) to an “assembly” language consisting of stacked DIVs. Because the library doesn’t keep track of the DIVs associated with each primitive, there’s no way to undo a shape (short of clearing the entire drawpad). wz_jsgraphics can also be slow (anything but rectangles and horizontal / vertical lines requiring large number of DIVs). However, these shortcomings aren’t fatal for a diagramming application.

Open jACOB is supposed to be a bigger framework, including a server-side part, though at the moment there isn’t much to see besides Draw2D. Overall, this is a promising start; hopefully this project will stay active and yield (further) useful results.

November 12, 2006

Adobe will discontinue the SVG plugin

Filed under: graphics, svg — Dan Muresan @ 2:46 pm

Adobe will discontinue (end of life) their SVG plugin starting January 1, 2008. This is not so surprising given their new-found interest in Flash after acquiring Macromedia; what is surprising is that they plan to actually remove the plugin from the Adobe download area after 2009 (and no, third parties are not allowed to redistribute it under the current licence).

While Opera and Firefox have native SVG support, Internet Explorer, which still has the dominant market share, has no good alternatives (Mark Finkle’s VML-based SVG emulation is only a start). This is sure to spark outrage among application developers (though, to be honest, everyone knows that other than Flash or DHTML, there is no safe way).

Update: Adobe has yielded to pressure and agreed to continue distributing the plugin indefinitely (though there will be no further releases, in particular no Vista version).

October 20, 2006

CSS triangles

Filed under: css, graphics — Dan Muresan @ 11:48 am

Uselesspickles has come up with a way to draw triangles using only Javascript and CSS borders. It works by adding two adjacent borders (say top and left) to a zero-height div, and making one of the borders transparent. Of course, IE (versions 6 and below) has problems with transparent borders, but this can be hacked around using filters, at the expense of designating a “transparent color” that can’t be used in the document.

This technique, of course, creates only right triangles aligned with the x and y axis. But you can cover any triangle (and, by extension, any polygon) with a collection of right triangles.

September 30, 2006

mxGraph diagramming library released

Filed under: graphics, javascript, diagrams — Dan Muresan @ 7:49 am

JGraph Ltd. has released mxGraph, a cross-browser javascript-based diagramming library (so, no Flash is required). The demo looks impressive, though the cross-browser part does not include Opera (and don’t draw anything you actually need, because you won’t be able to save or export).

Another sticking point is the licensing. You need to contact JGraph to obtain a copy of the Javascript source (simply downloading the files used by the online demo does not give you a license). While non-commercial licenses are free, a commercial license will run you into the thousands of dollars, depending on the number of end-users.

As far as technology, a quick look in mxClient.js reveals that mxGraph seems to use either SVG or (for Internet Explorer) VML:

isBrowserSupported:function(){
return mxClient.IS_VML||mxClient.IS_SVG;
}

This begs the question of why mxGraph does not work with Opera, which supports SVG just fine.

Overall, I think that, while mxGraph might be a fine bit of work, it suffers in terms of cross-browser support and licensing restrictions. You may want to hold your breath before basing your project on this library. It’s possible that something more convenient will come out (or that mxGraph itself will address its shortcomings).

August 22, 2006

Text tool support

Filed under: depicter — Dan Muresan @ 5:28 am

Depicter.com can now embed text in your diagrams or drawings. You can use any font size and choose between several common fonts. For Linux users, note that you should have the MS True Type Core Fonts installed (the package is called msttcorefonts on most systems); otherwise, exported images containing text may differ from what you see in your browser.

[ Powered by WordPress ]