ImgMap
ImgMap: Render any image on an in-game map!
By Evangon, Maximvdw, and JohnnyBlu
Originally coming from a picture of a troll face by md_5, this plugin allows a user with a map in hand (obviously with the proper permissions) to essentially put an image onto the map. The image could be anything: Instructions, rules, messages, warnings, a very nice picture of a cat, whatever you want! All images are resized to the proper dimension of 128x128. The image is then sent over to a rendering process (Devs: Check the source on how it's done if you want), which then the map renders the image for that map. Anyone with a map with the same ID (Typically, it says when you hover over it, e.g "Map #0") to see the same image too! The only downside to all of this is that due to the nature of Minecraft maps, they do not support full color. This is due to a limitation on the clients themselves.
Installation
Just drop it into the /plugins/ folder! No special configuration needed!
How to use
- Give yourself a map with a specific ID. This ID can be anything, but remember, once you draw an image on it, it will pertain only to that specific ID!
- Get the URL of the desired image! This is where some people mess up. In order for the plugin to successfully render it, it has to be a direct link to the image. Simply right click on the image and hit "Copy Image Location".
- Hold the map with the super specific ID and type in "/drawimage" and paste it! For most users, to paste, you do "CTRL+V".
- Wait a bit; rendering can take a bit. You'll notice several segments appear on the map; this it indicating that it's loading. If nothing happens, you're either met with a message that says something along the lines of "Server Internal Error" or you're staring a blank map. If you get kicked with the message with "Server Internal Error", simply type, in console, "fixmap <your super specific id>". This basically fixes the map with the old over world rendering. Try again; if it doesn't work, report it in the comments! However, if you are getting nothing, be sure the image is accessible directly from your browser (clear your cache before you do so!) Sometimes, what happens is that the owner of the website has set privileges denying anyone from accessing the image directly. A bit bothersome, but you can probably save the image and upload it somewhere else. However, when doing so, please follow the copyright usage on said images!
- Viola! Your map now has that pretty picture of a kitty or something!
Commands
- /drawimage <image url> Draws the specified image to the map you're holding. If you want to "save" the picture to the map, you add "-s" to the end of the command. The reason why "save" is written in quotations is because it doesn't actually save the map's picture; it simply saves the URL and it's corresponding ID to a flatfile and is loaded on start up.
- /drawanimatedimage <gif url> Attempts to draw an animated gif image. A little buggy here and there, but it works for the most part! Please be warned that this takes up a lot of bandwith (You're sending anywhere between 0 to 16kilobytes nearly every second!) and that it also is resource intensive!
- /drawytvideo <yt-ID> Experimental. Downloads a video and converts it to a GIF format. See /drawanimatedimage for more information as the same process is used.
- /emulategb <rom name> Highly experimental. Emulates a GameBoy (only GameBoy, not GameBoy Advanced or GameBoy Color) game on a map. Fully integrated, no client mods needed! Click on the chat messages given in chat to control the emulator.
- /emuaction <save|load|a|b|left|right|up|down|holdinput> Simulates input for emulated GameBoy games on a map. Used by the gamepad, you can also use it as a command if you wish. Note that "save" and "load" do not work as of current. Any input button just simulates input. "holdinput" makes the emulator act as if the person is holding down a directional button and directional only.
- /clearmap With a map in hand, this command wipes the image off of it and puts the old Minecraft map rendering back.
- /fixmap <id> A debug command, Caused an issue with a map that psudo-bans them? No worries! Simply get the ID of the problematic map, and type this command in, replacing <id> with the map's id. It's like /clearmap, only this time, you can target maps!
- /getmap <id> More of a debug command, but can be helpful for some, it allows you to get a map by almost any ID. The reason why this is "almost" is because if you try to get a map that is above the number that exists, it merely just goes over and gets the next ID, rather than the one you want. This is something that's within Minecraft that I cannot fix.
Permissions
- imgmap.*: Grants almost all rights to ImgMap. This does not include debug commands.
- imgmap.debug: Grants debugging rights to ImgMap. Does not include drawing or restoring capabilities.
- imgmap.drawimage: Allows you to draw an image to a map.
- imgmap.drawanimatedimage: Allows you to draw an animated image to a map.
- imgmap.clearmap: Allows you to clear a map and restores the overworld rendering.
- imgmap.debug.fixmap: Debug command. Allows you to remove all renderers on a given map ID.
- imgmap.debug.getmap: Debug command. Allows you to get a map by any ID.
Source for Developers/Contributors
Found a bug that you want to squash yourself? Go ahead and fork me! (Please don't actually stab me with a fork!) https://github.com/CirnoTheGenius/ImgMap-LosingPixels
Examples

-
View User Profile
-
Send Message
Posted Apr 5, 2013@blha303
I was never able to get it to save with the world. Sorry :x
edit: I'll throw a shot at the animation later; I won't guarantee it will be featured though. In the meantime; if you guys could, vote for which version of Bukkit I should start compiling under. I don't want to overflow the devBukkit staff list with minimal changes. However, I can still compile for both; assuming that you vote for "Both" obviously :3
-
View User Profile
-
Send Message
Posted Apr 5, 2013Do the altered maps save with the world, or do they only work while the plugin is installed? I'm making a single-player world, and I was hoping to use ImgMap to change the maps for when the world is on vanilla.
-
View User Profile
-
Send Message
Posted Apr 4, 2013To all with the permament map issue: I found out the reason why was because I had accidentally left out a "!" in the code. Currently bug checking/fixing everything.
@robi217
I cannot work with animations due to the fact that the server will be put under a lot of stress in terms of rendering the images. Prehaps in the future if I find a way to do it; then I can try to.
@Antiman9
It looks like you are trying to use and older version with a newer configuration set. Go into a text editor and replace every " > " with ":" and it should work.
@slideroller
If you want to; just clone the repository on GitHub and submit your poll request.
-
View User Profile
-
Send Message
Posted Apr 3, 2013This is an awesome plugin! It still has a ton of bugs but I'm sure in a bit it will be even better! Perfect for my ctf server with the kits, I can make pictures of all the kits. (It's still cool even though my graphics aren't the best...)
-
View User Profile
-
Send Message
Posted Apr 2, 2013I have narrowed the issue down to a point.
Images are properly re-rendered at server start when using /smap url1 url2 url3 -p But not when using /map url -p If you can solve why slideshow images are saving and single images aren't you will find the solution.
-
View User Profile
-
Send Message
Posted Apr 1, 2013When server restarts, all maps is reseted to default minecraft map.
-
View User Profile
-
Send Message
Posted Apr 1, 2013Whenever I use /map [URL] -p the console says that the map data has been saved, but it always deletes it upon server restart. Is there any way to get it to persist?
-
View User Profile
-
Send Message
Posted Apr 1, 2013I get an error in the console, but it still renders the images.
The only other issue is that the images are lost as soon as the server restarts.
@CollinDesigns try using /map ImageURL -p replace ImageURL with the http link to the image you want rendered. ex: /map http://www.google.com/images/srpr/logo4w.png -p
-
View User Profile
-
Send Message
Posted Apr 1, 2013@h0us3cat
I have same issue
-
View User Profile
-
Send Message
Posted Apr 1, 2013Hello! Can you put animated .gif support on the maps? Thank you!
-
View User Profile
-
Send Message
Posted Mar 31, 2013If you want I can update it for the players while you work on the other release.
-
View User Profile
-
Send Message
Posted Mar 31, 2013ops have no permission :p
and
/map -p gives "this image is not compitable"
while it works with /map
ImgMap v2B (#2723/1.5.1) for 1.5.1
-
View User Profile
-
Send Message
Posted Mar 31, 2013@CryLegend
Could you tell me which build you are using?
In response to the bar glitches, I cannot figure out what is causing it. I had forgotten to mention that when setting a wait time while using the slideshow command, the time to wait is measured in seconds.
-
View User Profile
-
Send Message
Posted Mar 31, 2013@CryLegend
I think you need to use a slightly older version of bukkit, you're likely on a dev build and should rollback to one before 3/30/2013.
So far I have no problems to report aside from the bars glitch (which is tolerable).
-
View User Profile
-
Send Message
Posted Mar 31, 20131.5 version isn't working for me : When I try /map URL with a map, it says me "[ImgMap] Rendering URL" but image doesn't appear on map. Nothing appears in logs when performing command, except "issued server command..."
-
View User Profile
-
Send Message
Posted Mar 30, 2013@FrauKoujiro
Thanks for the updates :)
-
View User Profile
-
Send Message
Posted Mar 30, 2013Currently entered public Beta mode. Please do not expect many releases from this state. Currently finishing up the new beta build.
Edit: Uploaded both a version compatible with 1.4.7 and one compatible for 1.5.1. Awaiting approval.
-
View User Profile
-
Send Message
Posted Mar 27, 2013I have been checking this page for updates every single day. I really hope you can update this plugin soon. I have many pictures on my server that are very important to my players. Please continue to develop this plugin!
Thank you.
-
View User Profile
-
Send Message
Posted Mar 25, 2013Please update. This plugin is really nice!
-
View User Profile
-
Send Message
Posted Mar 24, 2013I'll be honest and frank. I was just being lazy about this plugin. That aside, I am working on a rewrite currently. I don't know when I'll finish, but I will finish it. I'm sorry for any inconvenience this has caused anybody as it is completely my fault.
Edit: Extremely basic version of ImgMap-LosingPixels is now available via GitHub. I do not recommend using this version as it only contains the basic needs of rendering a map, and you have to compile this yourself.
Edit2: Thank you CaptainJohnnyBlu and Maximvdw for their support in this project. I owe you one :P