Browse Source

removing unused image and code

pull/119/head
Mark Bumiller 2 years ago
parent
commit
d72a90306b
  1. 6
      __main__.py
  2. 5
      modify_image.py

6
__main__.py

@ -25,7 +25,11 @@ sys.path.extend([os.getcwd()])
#Dependency Handling
if not os.path.isdir("./dependencies/"):
os.mkdir("./dependencies/")
required_files = [("Roboto-Regular.ttf", 'https://github.com/googlefonts/roboto/blob/main/src/hinted/Roboto-Regular.ttf?raw=true'), ('airports.csv', 'https://ourairports.com/data/airports.csv'), ('regions.csv', 'https://ourairports.com/data/regions.csv'), ('ADSBX_Logo.png', "https://www.adsbexchange.com/wp-content/uploads/cropped-Stealth.png"), ('Mictronics_db.zip', "https://www.mictronics.de/aircraft-database/indexedDB.php")]
required_files = [
("Roboto-Regular.ttf", 'https://github.com/googlefonts/roboto/blob/main/src/hinted/Roboto-Regular.ttf?raw=true'),
('airports.csv', 'https://ourairports.com/data/airports.csv'),
('regions.csv', 'https://ourairports.com/data/regions.csv'),
('Mictronics_db.zip', "https://www.mictronics.de/aircraft-database/indexedDB.php")]
for file in required_files:
file_name = file[0]
url = file[1]

5
modify_image.py

@ -26,11 +26,6 @@ def append_airport(filename, airport, text_credit=None):
draw.rectangle(((325, 760), (624, 800)), fill= white, outline=black)
#Header Box
draw.rectangle(((401, 738), (549, 760)), fill= navish)
#ADSBX Logo
#
# adsbx = Image.open("./dependencies/ADSBX_Logo.png")
# adsbx = adsbx.resize((25, 25), Image.ANTIALIAS)
# image.paste(adsbx, (632, 757), adsbx)
#Create Text
#ADSBX Credit
if text_credit is not None:

Loading…
Cancel
Save