[Xastir] Snapshot problems

Curt, WE7U curt.we7u at gmail.com
Wed Jan 2 17:12:02 EST 2013


On Sun, 9 Dec 2012, happyexi wrote:

> Snapshot problems : is there a way to take usable snapshot while using
> offline map (former snapshot of maps used as jpg?)
> I added a snapshot taken with offline maps, and the result is that i get
> an error can not convert to snapshot.xpm to snapshot.png.. as you can
> see in the file, it is distorted and not usable. The map is render
> un-reconaisebele.

As I recall there should be no difference whether you're using online or offline maps, as far as the snapshots go.  If it's broken for one, it should be broken for all.

The code is in src/maps.c:Snapshot(), and it uses the XpmWriteFileFromPixmap() function call.  It also puts snapshot_thread() into a new thread.  At top of that latter function are these comments:

// Create png image (for use in web browsers??).  Requires that "convert"
// from the ImageMagick package be installed on the system.  At the
// point this thread is started, the XPM file has already been
// created.  We now create a .geo file to go with the .png file.

-- 
Curt, WE7U.        http://wetnet.net/~we7u
Babysitting your tracker:  http://info.aprs.net/index.php?title=ControlOperator



More information about the Xastir mailing list