|
|
@ -300,7 +300,7 @@ class PublicRelations(Bureau):
|
|
|
|
if img:
|
|
|
|
if img:
|
|
|
|
filename = img.url.rsplit('/',1)[1]
|
|
|
|
filename = img.url.rsplit('/',1)[1]
|
|
|
|
filename = "/tmp/" + filename
|
|
|
|
filename = "/tmp/" + filename
|
|
|
|
print("fetching", img.url, filename)
|
|
|
|
print("fetching", img.remote_url, filename)
|
|
|
|
urllib.request.urlretrieve(img.url, filename)
|
|
|
|
urllib.request.urlretrieve(img.url, filename)
|
|
|
|
im = PIL.Image.open(filename)
|
|
|
|
im = PIL.Image.open(filename)
|
|
|
|
if im.mode in ("L", "RGB", "P"):
|
|
|
|
if im.mode in ("L", "RGB", "P"):
|
|
|
|