|
color_mapping = {
|
|
"white": (255, 255, 255),
|
|
"black": (0, 0, 0),
|
|
"red": (255, 0, 0),
|
|
"green": (0, 255, 0),
|
|
"blue": (0, 0, 255),
|
|
"yellow": (255, 255, 0),
|
|
"cyan": (0, 255, 255),
|
|
"magenta": (255, 0, 255),
|
|
"orange": (255, 165, 0),
|
|
"purple": (128, 0, 128),
|
|
"pink": (255, 192, 203),
|
|
"brown": (160, 85, 15),
|
|
"gray": (128, 128, 128),
|
|
"lightgray": (211, 211, 211),
|
|
"darkgray": (102, 102, 102),
|
|
"olive": (128, 128, 0),
|
|
"lime": (0, 128, 0),
|
|
"teal": (0, 128, 128),
|
|
"navy": (0, 0, 128),
|
|
"maroon": (128, 0, 0),
|
|
"fuchsia": (255, 0, 128),
|
|
"aqua": (0, 255, 128),
|
|
"silver": (192, 192, 192),
|
|
"gold": (255, 215, 0),
|
|
"turquoise": (64, 224, 208),
|
|
"lavender": (230, 230, 250),
|
|
"violet": (238, 130, 238),
|
|
"coral": (255, 127, 80),
|
|
"indigo": (75, 0, 130),
|
|
}
|
|
|
|
COLORS = ["custom", "white", "black", "red", "green", "blue", "yellow",
|
|
"cyan", "magenta", "orange", "purple", "pink", "brown", "gray",
|
|
"lightgray", "darkgray", "olive", "lime", "teal", "navy", "maroon",
|
|
"fuchsia", "aqua", "silver", "gold", "turquoise", "lavender",
|
|
"violet", "coral", "indigo"]
|
|
|
|
iso_sizes = {
|
|
"A0 - 9933x14043": (9933, 14043),
|
|
"A1 - 7016x9933": (7016, 9933),
|
|
"A2 - 4960x7016": (4960, 7016),
|
|
"A3 - 3508x4960": (3508, 4960),
|
|
"A4 - 2480x3508": (2480, 3508),
|
|
"A5 - 1748x2480": (1748, 2480),
|
|
"A6 - 1240x1748": (1240, 1748),
|
|
"A7 - 874x1240": (874, 1240),
|
|
"A8 - 614x874": (614, 874),
|
|
"A9 - 437x614": (437, 614),
|
|
"A10 - 307x437": (307, 437),
|
|
"A11 - 213x307": (213, 307),
|
|
"A12 - 154x213": (154, 213),
|
|
"A13 - 106x154": (106, 154),
|
|
"B0 - 11811x16701": (11811, 16701),
|
|
"B1 - 8350x11811": (8350, 11811),
|
|
"B2 - 5906x8350": (5906, 8350),
|
|
"B3 - 4169x5906": (4169, 5906),
|
|
"B4 - 2953x4169": (2953, 4169),
|
|
"B5 - 2079x2953": (2079, 2953),
|
|
"B6 - 1476x2079": (1476, 2079),
|
|
"B7 - 1039x1476": (1039, 1476),
|
|
"B8 - 732x1039": (732, 1039),
|
|
"B9 - 520x732": (520, 732),
|
|
"B10 - 366x520": (366, 520),
|
|
"C0 - 10831x15319": (10831, 15319),
|
|
"C1 - 7654x10831": (7654, 10831),
|
|
"C2 - 5409x7654": (5409, 7654),
|
|
"C3 - 3827x5409": (3827, 5409),
|
|
"C4 - 2705x3827": (2705, 3827),
|
|
"C5 - 1913x2705": (1913, 2705),
|
|
"C6 - 1346x1913": (1346, 1913),
|
|
"C7 - 957x1346": (957, 1346),
|
|
"C8 - 673x957": (673, 957),
|
|
"C9 - 472x673": (472, 673),
|
|
"C10 - 331x472": (331, 472),
|
|
}
|
|
|