[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Re-phrase

ImageMagick is sloooow. Plus it has a ton of requirements before it
will compile.
GD2, on the other hand, is fast and lite.
Also, if you know perl, there is GD::SVG
Once you have a GD object, you can easily convert to JPEG or PNG. and
fairly simple to gain coordinates/bounds.

I wrote an imap module using GD2 for PNG images, so I know it is
possible. It just might require more work than you had anticipated.

Good luck,

On Sun, 30 Jan 2005 21:56:23 +0100, RittervomNie web de
<RittervomNie web de> wrote:
> Sam Post schrieb:
> [...]
> > Any ideas? I'd like to be able to use Dia to make an image, then run a
> > simple script that reads the dia/svg file and outputs html for a
> > clickable image map. The problem is, dia's coordinate system is in
> > centimeters and I can't figure out how to get this into pixels, which
> > is what jpg's and png's use.
> > 
> Depends on resolution. Why not using "compatible" vector graphics
> programs? OpenOffice can handle jpegs (load one), draw in
> centimeter-scale (over the jpeg) and export the drawing as svg. (drawn
> in cm, exported in pixels).
> Does this solve the problem? (Otherwise use Image-Magic libraries and
> code something in perl, java, c or any preferred language and get the cm
> bounds of jpegs and gifs->calculate scaling factor->proportionally scale
> your svg coordinates.)
> _______________________________________________
> Dia-list mailing list
> Dia-list gnome org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.gnome.org/projects/dia/faq.html
> Main page at http://www.gnome.org/projects/dia

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum