Compare commits
No commits in common. "1632ef7bbc590335b4aa810866635e787418fc50" and "cd9265d0534c047537e1059685c91296282924fd" have entirely different histories.
1632ef7bbc
...
cd9265d053
2 changed files with 5 additions and 7 deletions
|
|
@ -80,7 +80,7 @@ class Text(dcc.doom_base.WadMap):
|
|||
width=self.thumbnail_width
|
||||
) as img:
|
||||
self.draw_text(
|
||||
img, text, wrap_dist=0.95
|
||||
img, text,
|
||||
)
|
||||
img.trim()
|
||||
img.reset_coords()
|
||||
|
|
|
|||
10
dcc/thumb.py
10
dcc/thumb.py
|
|
@ -8,13 +8,12 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
def get_parser(self, prog_name):
|
||||
parser = super().get_parser(prog_name)
|
||||
parser.add_argument("--index", action="store_true")
|
||||
parser.add_argument("--noov", action="store_true")
|
||||
return parser
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
base = self.base_thumb_path()
|
||||
text = self.text_thumb_path()
|
||||
overlay = self.thumb_overlay_path()
|
||||
overlay = self.thumnail_overlay_path()
|
||||
with (
|
||||
wand.image.Image(filename=base) as bi,
|
||||
wand.color.Color("transparent") as tc
|
||||
|
|
@ -23,10 +22,9 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
ti.border(tc, 5, 5)
|
||||
bi.composite(ti, gravity="south_west")
|
||||
|
||||
if not parsed_args.noov:
|
||||
with wand.image.Image(filename=overlay) as mdi:
|
||||
mdi.border(tc, 5, 5)
|
||||
bi.composite(mdi, gravity="north_west")
|
||||
with wand.image.Image(filename=overlay) as mdi:
|
||||
mdi.border(tc, 5, 5)
|
||||
bi.composite(mdi, gravity="north_west")
|
||||
|
||||
if parsed_args.index:
|
||||
with wand.image.Image(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue