* Update ec4e3f68-9ea4-4c18-a5c9-69f89d1178b3.json * Update c288e301-e626-4b98-a1ab-159dcb162af5.json * Update 3ce045a0-877b-42aa-8d2c-b4a863336ab8.json * Update b3d4a89c-53f2-4d6b-8b6a-541fb5d205fa.json * Update 2e6f678f-472d-4c55-99cc-8e7c5c402a71.json Please batch process all images on the desktop by increasing their brightness to 50, instead of adjusting them individually. * Update 5ca86c6f-f317-49d8-b6a7-b527541caae8.json * Update a746add2-cab0-4740-ac36-c3769d9bfb46.json * Update a746add2-cab0-4740-ac36-c3769d9bfb46.json * Update 62f7fd55-0687-4a43-b6e1-3eda16fc6252.json * Update d52d6308-ec58-42b7-a2c9-de80e4837b2b.json * Update d16c99dc-2a1e-46f2-b350-d97c86c85c15.json * Update d16c99dc-2a1e-46f2-b350-d97c86c85c15.json * Update 58d3eeeb-e9d0-499f-962e-fd0db2a744d8.json
119 lines
2.9 KiB
JSON
119 lines
2.9 KiB
JSON
{
|
|
"id": "d16c99dc-2a1e-46f2-b350-d97c86c85c15",
|
|
"snapshot": "gimp",
|
|
"instruction": "Could you assist me with resizing the dog layer of an image? I need to adjust the height to 512 pixels while maintaining the original aspect ratio?",
|
|
"source": "https://stackoverflow.com/questions/75185543/use-gimp-to-resize-image-in-one-layer-only",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15/dog_with_background.png",
|
|
"path": "/home/user/Desktop/dog_with_background.png"
|
|
},
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15/dog_with_background_two_layers.xcf",
|
|
"path": "/home/user/Desktop/dog_with_background_two_layers.xcf"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"gimp",
|
|
"/home/user/Desktop/dog_with_background_two_layers.xcf"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"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(\"resized\");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_image_size",
|
|
"check_structure_sim_resized"
|
|
],
|
|
"expected": [
|
|
{
|
|
"type": "rule",
|
|
"rules": {
|
|
"height": 512
|
|
}
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/dog_with_background.png",
|
|
"dest": "dog_with_background.png"
|
|
}
|
|
],
|
|
"result": [
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/resized.png",
|
|
"dest": "resized.png"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/resized.png",
|
|
"dest": "resized.png"
|
|
}
|
|
]
|
|
},
|
|
"proxy": false
|
|
}
|