2024-12-05 23:04:55|Myriagame |source:minecraft skins
Interface address
http://gmapi.liulikeji.top:15842/image
Request format: httppost
Enter: json
parameter:
URL (file download link)
h (height)
W (length)
*Note: The size of the picture is displayed in the CC, usually the height of the CC terminal size X3 width X2
local w, h = term.getsize ()local w = w*2
local h = h*3
Format (mode)
Lua output a LUA executable file (1FPS) Press the car to closeRAW output image/video file based on RAW mode (default videos)
Blit-IMAGE output image/animation file in Blit image (BIMG) format
32VID output image/animation file in Blit image (BIMG) format
Return: Type: String (File Download Link)
http://fserverikeji.top:15848/wavfile/ {ID }.image
Example 1:
Play: Show https://www.mcmod.cn/images/logo.gif
local imageurl = "https://www.mcmod.cn/images/logo.gif"Example 2:local w, h = term.getsize ()
local w = w*2
local h = h*3
local format = "lua"
LOCAL JSON = Textutils.Serialisejson ({["url"] = Imageurl, ["w"] = w, ["h" = h, ["format"] = format})
local luaurl = http.post ("http://gmapi.liulikeji.top:15842/image", json). READALL ()
load (http.get (luaurl). READALL ()) ()
Image browser
cmd = {...}local imageurl = cmd [1]
if cmd [2] == "Monitor" then
Peripheral.find ("Monitor"). SettextScale (0.5)
W, h = Peripheral.find ("Monitor"). Getsize ()
else
W, h = term.getsize ()
end
local w = w*2
local h = h*3
local format = "lua"
LOCAL JSON = Textutils.Serialisejson ({["url"] = Imageurl, ["w"] = w, ["h" = h, ["format"] = format})
local luaurl = http.post ("http://gmapi.liulikeji.top:15842/image", json). READALL ()
if cmd [2] == "Monitor" then
Localterm = Term
Term.ReDirect (Peripheral.find ("Monitor"))
Load (http.get (luaurl). READALL ()) () () ())
Peripheral.find ("Monitor"). SettextScale (1)
else
Load (http.get (luaurl). READALL ()) () () ())
end
Attached::
Online file storage: Liulikeji.top (liulikeji.top)
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22