go mod vendor
go build
./img.exe input.txt
-- Declarations --
-- Image
img = open("capture.png");
-- Folder
folder[] = open("images");
-- Actions --
img.rotate(180);
folder.pixelate(10);
-- Exports --
img.save("new_image_1.png");
folder.save("export");
rotate(angle int)
flipX()
flipY()
crop(x0, y0, x1, y1 int)
resize(width, height int)
brightness(percentage int)
contrast(percentage int)
saturation(percentage int)
pixelate(size int)
- Misspelled command (ex: opn, instead of open)
- Missing token
- Wrong file name
- Using a non delcared variable
- Invalid arguments in actions (ex: string instead of float or int)
- Invalid image type or non image type.