95 lines
2.1 KiB
JSON
95 lines
2.1 KiB
JSON
{
|
|
"id": "06ca5602-62ca-47f6-ad4f-da151cde54cc",
|
|
"snapshot": "gimp",
|
|
"instruction": "Could you help me set the image to Palette-Based?",
|
|
"source": "https://stackoverflow.com/questions/74664666/how-to-export-palette-based-png-in-gimp",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=1fxR-hAaF5BoONWxmzJTrIxXFw9EHTg_A",
|
|
"path": "/home/user/Desktop/computer.png"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"gimp",
|
|
"/home/user/Desktop/computer.png"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"gimp"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey([\"shift\", \"ctrl\", \"e\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.write(\"palette_computer\");pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 5
|
|
}
|
|
}
|
|
],
|
|
"func": "check_palette_and_structure_sim",
|
|
"expected": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/computer.png",
|
|
"dest": "computer.png"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/palette_computer.png",
|
|
"dest": "palette_computer.png"
|
|
}
|
|
}
|
|
} |