Results 1 to 14 of 14

Thread: .map -> PNG/Gif

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    2

    .map -> PNG/Gif

    Anyone know if there is anything around which will convert a .map to a gif or png?

  2. #2
    Registered User Mr. Suspicious's Avatar
    Join Date
    May 2002
    Posts
    667
    yes there is, my 3rd post in the thread only a few threads down below: http://seq.sourceforge.net/showthrea...&threadid=1296
    Last edited by Mr. Suspicious; 07-11-2002 at 05:32 PM.
    Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf

    after you've read it, you know what to do next...




    "Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    2
    Hmm GD looks a bit over my head....

    No one has a website up or anything where you can dump a map file and it covnerts for you like mapfiend used to?

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    1,262
    The easiest was it to open them up in ShowEQ, and screen capture the window... I think using the scripts posted by Mr. S. and GD, or Screen Capture are pretty much the only 2 ways to go.

    --Jeeves

  5. #5
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648
    I'll also point out that on the right-click context menu you will find an option "Save Map Image..." that will save whatever is drawn in the map window to any of the file formats that your installation of Qt is configured to handle (BMP, JPEG, PNG, etc.). So if you just want an image of a map, just start up showeq, open up a map ("File" menu -> "Open Map"); Then right-click on the map image, and select "Save Map Image..." from the context menu, in the dialog that pops up specify a filename and select a file type.

    Also, if you configured showeq with --enable-cgi you will have created the drawmap.cgi program that can also be used to generate map images when accessed from the web. Just browse to it, load up the map you want, and save the image to a file.

    Enjoy,
    Zaphod (dohpaZ)
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  6. #6
    Registered User Mr. Suspicious's Avatar
    Join Date
    May 2002
    Posts
    667
    Arf, finally found out what drawmap.cpp is for =P Thanks Zaphod.
    Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf

    after you've read it, you know what to do next...




    "Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.

  7. #7
    Registered User
    Join Date
    Jan 2002
    Posts
    1,508
    Just recompile.

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    now, i know i am stupid... but i have never been able to get it to compile with any of the cgi stuffs. could someone provide an example ./configure --with-cgi line that... they use?

    i'll put mine here when i get a chance to go back and remember what i used.

  9. #9
    Registered User domesticbeer's Avatar
    Join Date
    Dec 2001
    Posts
    146

    compiling with cgi directories

    Fry,
    Every time i compile with the --enable-cgi-dir=/home/httpd/cgi-bin and the --enable-cgi-icons=/home/httpd/htdocs/eq-icons set in the configure command. I get an error with i do a make with in the drawmap.cpp file on some undeclared function. I will recompile tonite and post the error message for you all to see.

    EDIT here is the error that i am seeing

    drawmap.cpp: In function 'void paintMap()';
    drawmap.cpp:529: 'gdImageGif' undeclared (first use thie function)
    drawmap.cpp:529: (Each undeclared identifier is reported only once for each function it appears in.)
    make[2]: *** [drawmap.o] Error 1
    make[2]: Leaving directory '/showeq/src'
    make[1]: *** [all-recursive] Error 1


    Any thoughts?
    Last edited by domesticbeer; 08-01-2002 at 08:40 PM.
    Beer


  10. #10
    Registered User Mr. Suspicious's Avatar
    Join Date
    May 2002
    Posts
    667
    Any luck yet domesticbeer?
    Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf

    after you've read it, you know what to do next...




    "Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.

  11. #11
    Registered User domesticbeer's Avatar
    Join Date
    Dec 2001
    Posts
    146
    Actually I found out that the error was casued by not have GIF support anymore in hte GD library. I submitted a patch for this file to fix it and only give the option of using PNG.

    Still having a problem of not being able to produce and icons or map images, though
    Beer


  12. #12
    Registered User domesticbeer's Avatar
    Join Date
    Dec 2001
    Posts
    146
    I had a revelation last night. Since I am running Gentoo linux and to build QT I would just emerge QT. Perhaps I should to an ebuild of QT and then do the the Compiling myself verifiing that the correct options are passed to the configuration scripts.


    It is amazing what happens when you stop and think things through.
    Beer


  13. #13
    Registered User
    Join Date
    Jan 2002
    Posts
    741
    Beer, the configure options are right in the .ebuild script. I modified my own for 3.0.4 there. Just vi the ebuild file and add/remove options as you see fit, then run the ebuild. It's not a huge file, so gou can just search for "libjpeg" or something to find the options. Still nice and automated, but fully under your control.

  14. #14
    Registered User domesticbeer's Avatar
    Join Date
    Dec 2001
    Posts
    146
    cool will use the SEARCH feature and locate those and then add the ones that will be needed and recompile it.
    Beer


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On