diff --git a/dcc/check.py b/dcc/check.py new file mode 100644 index 0000000..94660e5 --- /dev/null +++ b/dcc/check.py @@ -0,0 +1,10 @@ +import dcc.config +import dcc.doom_base +import wand.display +import wand.image + +class Check(dcc.doom_base.WadMap): + def take_action(self, parsed_args): + with wand.image.Image(filename=dcc.config.BaseThumbPath(parsed_args.wad, parsed_args.map)) as img: + print("Image is {}x{}.".format(img.width, img.height)) + wand.display.display(img) diff --git a/setup.py b/setup.py index e6dca03..a6ba04d 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ setup( 'put = dcc.put:Put', 'pb = dcc.pb:PB', 'ss = dcc.ss:SS', + 'check = dcc.check:Check', ], }, zip_safe=False,