Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Overland map query
Forum Rules | Mark all | Recent Posts

Overland map query
< Newer Topic :: Older Topic > Converting .raw files

Pages:<< prev 1 next >>
Post is unread #1 Jul 6, 2002, 4:28 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

I was thinking of being able to convert the raw map files to files viewable in a web browser, but have been unable to gain sufficient information about the raw file. Programs like ImageMagick require specific information about the files to be entered in for them to be converted.

Samson, as you coded the overland map, do you have any ideas on how I would convert the file to a normal image file (without losing the raw file)?
       
Post is unread #2 Jul 7, 2002, 10:20 am
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

A program like Photoshop or Paintshop Pro can convert .raw files to usable graphics.

I used windows paint to create the basic .bmp for my map, then used paintshop to convert it to raw format.
Though if you are creating your own maps, then you have the .bmp or .jpg which is viewable from a browser anyway.

Hope this helps

Kilroy
       
Post is unread #3 Jul 7, 2002, 6:20 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

I know I can do that, but the idea is that I have a cron script that runs once a day that will convert it for me - much easier than downloading a 3mb file, converting it and uploading it.
       
Post is unread #4 Jul 7, 2002, 11:50 pm
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

I know I can do that, but the idea is that I have a cron script that runs once a day that will convert it for me - much easier than downloading a 3mb file, converting it and uploading it.

This may not be exactly what you want but I've done something similar in the past.

Using libgd (Current stable version is 1.8.4 found Here, although its usually included with most Linux dists thesedays) you can write out JPEGs PNGs and build them using C. Previously I produced a weather map (I had weather formations and stuff like that) which recursed quickly through the overhead map and built a graphic colouring the pixels. This file I then served via the internal web server I wrote.

Two problems with this, one, I don't think it works with RAW image files, although as Samson imports via AFK, I assume there is code to read it in, using libgd, you can write them out again, two, your overland may be a bit large to periodically write out these graphics but in which case you can create a seperate little prog (using the RAW import and libgd output) to do the job.

Bleugh, also just realised.. (*runs off to check some info*)

Another REALLY easy way.. bunch of tools called Netpbm. Just checked, will convert from RAW to its native and then to another format (says it has about 88 formats supported I believe so it should be able to do what you want it to). A small script and those tools should also be able to do the conversion you want.

Hopefully some of that is useful.
       
Pages:<< prev 1 next >>