Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Nov 15, 2024
1 parent 4de7496 commit 3cfb47d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion upcean/predraw/presvgwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def new_image_surface(sizex, sizey, bgcolor):
upc_img = svgwrite.Drawing(upc_preimg, profile='full', size=(sizex, sizey))
upc_preimg.close()
drawColorRectangle(upc_img, 0, 0, sizex, sizey, bgcolor)
return [upc_img, upc_preimg]
return [upc_img, None]

def drawColorRectangleAlt(dwg, x1, y1, x2, y2, color):
"""
Expand Down
5 changes: 2 additions & 3 deletions upcean/predraw/prewand.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ def drawColorRectangleAlt(image, x1, y1, x2, y2, color):
def new_image_surface(sizex, sizey, bgcolor):
if isinstance(bgcolor, tuple) and len(bgcolor) == 3:
bgcolor = '#{:02x}{:02x}{:02x}'.format(*bgcolor)
upc_preimg = Image(width=sizex, height=sizey, background=Color(bgcolor))
upc_img = upc_preimg
upc_img = Image(width=sizex, height=sizey, background=Color(bgcolor))
drawColorRectangle(upc_img, 0, 0, sizex, sizey, bgcolor)
return [upc_img, upc_preimg]
return [upc_img, None]

# Define supported extensions if not defined elsewhere
WAND_SUPPORTED_EXTENSIONS = formats()
Expand Down

0 comments on commit 3cfb47d

Please sign in to comment.