diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-03-02 21:15:24 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-03-02 21:15:24 +0000 |
commit | 601fc2cffc9f22187762c5ac362ee095c5d71dde (patch) | |
tree | 5603a0041887f4e79f46f4cba7f109c8e69b93ba /core/views/prospect.py | |
parent | af50d4912dd088d34ab73030efe7e3cc5505a9c2 (diff) | |
download | troggle-601fc2cffc9f22187762c5ac362ee095c5d71dde.tar.gz troggle-601fc2cffc9f22187762c5ac362ee095c5d71dde.tar.bz2 troggle-601fc2cffc9f22187762c5ac362ee095c5d71dde.zip |
WORKING Dj2.2.24 & 2.2.25 py3.7
Diffstat (limited to 'core/views/prospect.py')
-rw-r--r-- | core/views/prospect.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/views/prospect.py b/core/views/prospect.py index aaefc11..4b30f5d 100644 --- a/core/views/prospect.py +++ b/core/views/prospect.py @@ -1,10 +1,8 @@ import os import string import re -#import settings import urllib.parse # from pathlib import Path -from PIL import Image, ImageDraw, ImageFont from django.http import HttpResponse from django.shortcuts import render @@ -18,7 +16,7 @@ from troggle.parsers.survex import MapLocations ''' Generates the prospecting guide document. Also produces the overlay of points on top of a prospecting_image map - to be deleted. -I have tried to make this work with the version of PIL we have installed but something is missing still. +Not working with recent PIL aka Pillow image package - removed. ''' AREANAMES = [ @@ -143,7 +141,7 @@ for FONT in [ TEXTSIZE = 16 CIRCLESIZE =8 LINEWIDTH = 2 -myFont = ImageFont.truetype(FONT, TEXTSIZE) +#myFont = ImageFont.truetype(FONT, TEXTSIZE) # disabled as not importing PIL #print(f' - myFont {myFont} {FONT} {TEXTSIZE}') def mungecoord(x, y, mapcode, img): |