Porównaj commity

...

4 Commity

Autor SHA1 Wiadomość Data
Hartmut Holzgraefe 731af51254 fix function name typo 2023-12-26 23:32:47 +01:00
Hartmut Holzgraefe a9dcb19acb Merge branch 'dev-reedit-2' of https://github.com/hholzgra/maposmatic into dev-reedit-2 2023-11-24 13:15:08 +01:00
Hartmut Holzgraefe 1c9025dda7 Merge branch 'dev-reedit-2' of https://github.com/hholzgra/maposmatic into dev-reedit-2 2023-11-12 13:09:41 +01:00
Hartmut Holzgraefe 74d0cf7271 merge 2023-11-12 13:09:28 +01:00
5 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -404,7 +404,8 @@ class JobRenderer(threading.Thread):
img = Image.open(prefix + '.png')
try:
img = img.convert('RGB')
img.save(prefix + '.jpg', quality=50)
img.save(prefix + '.tmp.jpg', quality=50)
os.rename(prefix + '.tmp.jpg', prefix + '.jpg')
except Exception as e:
LOG.warning("PNG to JPEG conversion failed: %s" % e)
img.thumbnail((200, 200), Image.ANTIALIAS)
@ -414,9 +415,10 @@ class JobRenderer(threading.Thread):
img.close()
try:
pngquant_cmd = [ "pngquant", "--output", "%s.8bit.png" % prefix,
pngquant_cmd = [ "pngquant", "--output", "%s.tmp.8bit.png" % prefix,
"%s.png" % prefix ]
subprocess.check_call(pngquant_cmd)
os.rename(prefix + '.tmp.8bit.png', prefix + '.8bit.png')
except Exception as e:
LOG.warning("PNG color reduction failed: %s" % e)

Wyświetl plik

@ -326,7 +326,7 @@ def _jobs_post(request):
result['id'] = reply['id']
result['nonce'] = reply['nonce']
result['status'] = reply['status']
result['status_msg'] = job_stati_dict(reply['status'])
result['status_msg'] = _job_stati_dict(reply['status'])
if reply['status'] == 0:
result['queue_size'] = models.MapRenderingJob.objects.queue_size()
else:

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 529 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 529 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 846 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 847 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 239 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 240 KiB