View Single Post
  #14  
Old July 21st, 2008, 01:58 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Creating a fake map image file

I'm really surprised to hear that putting random white pixels into a map image doesn't work. What exactly is going haywire with that approach? Anybody care to give me an example?

Quote:
Ballbarian said:
Try this llamabeast:
Create a cross-platform program that your users can download (or run from a browser) that will change every pixel to black except for the pure white province markers. Then have them upload the resulting image.
Another possibility would be to do this on the client side when they want to upload the image. Here are links to open source file upload applets in Java which you might be able to vandalize to add the desired functionality:

http://sourceforge.net/project/showf...group_id=59144
http://www.aasted.org/ (don't let the name "Coppermine java image uploader" scare you away, it's probably easier to get it working even without a Coppermine gallery installed than to implement an image uploading applet from scratch)

Quote:
Gandalf Parker said:
Hmmmm I was working on a command-line to the fantastic ImageMagick tools to do that. Or maybe a ghost-script to GIMP.
I certainly don't want to curb your enthusiasm, but while it's very powerful in terms of functions that it offers, I've found out that ImageMagick or at least its bindings through PythonMagick is an awful sluggish piece of *bleep*.

I could give you something in Python which does this in PIL, that would be about 5 lines of code. Somebody actually even asked exactly for this a couple of weeks ago on the image-sig mailing list. You could even chose to build binaries for any platforms you'd wish to support with that. But speaking from experience, if the process is too complicated, like this sounds, I'd say that people wouldn't bother to use it.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote