{"id":19419899,"url":"https://github.com/organization/worldtojpeg","last_synced_at":"2025-04-24T14:32:00.339Z","repository":{"id":99451977,"uuid":"69783407","full_name":"organization/worldToJpeg","owner":"organization","description":"마인크래프트맵을 간단한 소스를 통해 이미지처리합니다","archived":false,"fork":false,"pushed_at":"2017-02-07T05:10:08.000Z","size":2733,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-03T06:22:05.603Z","etag":null,"topics":["image","nukkit","plugin"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/organization.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-02T06:50:26.000Z","updated_at":"2023-09-09T16:43:41.000Z","dependencies_parsed_at":"2023-07-09T01:45:47.106Z","dependency_job_id":null,"html_url":"https://github.com/organization/worldToJpeg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/organization%2FworldToJpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/organization%2FworldToJpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/organization%2FworldToJpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/organization%2FworldToJpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/organization","download_url":"https://codeload.github.com/organization/worldToJpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250643477,"owners_count":21464183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","nukkit","plugin"],"created_at":"2024-11-10T13:19:37.469Z","updated_at":"2025-04-24T14:32:00.333Z","avatar_url":"https://github.com/organization.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# worldToJpeg\n 마인크래프트맵을 간단한 소스를 통해 이미지처리합니다\n```\n\nBufferedImage image;\ntry {\n\timage = new BufferedImage(600, 600, BufferedImage.TYPE_INT_RGB);\n\tGraphics2D graphics = image.createGraphics();\n\tPosition spawn = getServer().getDefaultLevel().getSafeSpawn();\n\tfor (int x = 0; x != 600; x++) {\n\t\tfor (int y = 0; y != 600; y++) {\n\t\t\tgraphics.setColor(getServer().getDefaultLevel().getMapColorAt(spawn.getFloorX() - 300 + x,\n\t\t\t\t\tspawn.getFloorZ() - 300 + y));\n\t\t\tgraphics.fillRect(x, y, x, y);\n\t\t}\n\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * 플레이어를 인식하면 해당 플레이어의 위치와 그 닉네임을 추가로 이미지에 반영합니다\n\t\t\t\t\t * 해당 기능을 원치않을경우 작성하지 않으시면 됩니다\n\t\t\t\t\t */\n\t\t\t\t\t/*\n\t\t\t\t\tfor (Player player : getServer().getOnlinePlayers().values()) {\n\t\t\t\t\t\tint x = player.getPosition().getFloorX();\n\t\t\t\t\t\tint y = player.getPosition().getFloorZ();\n\t\t\t\t\t\tPosition spawn1 = getServer().getDefaultLevel().getSafeSpawn();\n\n\t\t\t\t\t\tif (x \u003c= spawn1.getFloorX() + 300 \u0026\u0026 x \u003e= spawn1.getFloorX() - 300\n\t\t\t\t\t\t\t\t|| y \u003c= spawn1.getFloorZ() + 300 \u0026\u0026 y \u003e= spawn1.getFloorZ() - 300) {\n\n\t\t\t\t\t\t\tgraphics.setColor(Color.RED);\n\t\t\t\t\t\t\tgraphics.fillRect((spawn.getFloorX() - x) + 299, (spawn.getFloorZ() - y) + 299,\n\t\t\t\t\t\t\t\t\t// (spawn.getFloorX() - x) + 300,\n\t\t\t\t\t\t\t\t\t// (spawn.getFloorZ() - y) + 300\n\t\t\t\t\t\t\t\t\t2, 2);\n\t\t\t\t\t\t\tgraphics.setColor(Color.BLACK);\n\t\t\t\t\t\t\tgraphics.drawString(player.getName(), (spawn.getFloorX() - x) + 300,\n\t\t\t\t\t\t\t\t\t(spawn.getFloorZ() - y) + 296);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\ttry {\n\t\tFile file = new File(getDataFolder() + \"/world.jpeg\");\n\t\tImageIO.write(image, \"jpeg\", file);\n\t\tgetLogger().info(\"finsh\");\n\t} catch (IOException e) {\n\treturn;\n\t}\n} finally {\n\n}\n\t\t\t\n\n```\n![logo](https://github.com/organization/worldToJpeg/blob/master/PicsArt_10-02-04.05.52.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forganization%2Fworldtojpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forganization%2Fworldtojpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forganization%2Fworldtojpeg/lists"}