test úprav spirály v archivu
This commit is contained in:
parent
5c97181062
commit
ed931a5987
1 changed files with 5 additions and 4 deletions
|
@ -322,9 +322,10 @@ class ArchivView(generic.ListView):
|
|||
sirka = 210 # px
|
||||
|
||||
# nejnovějších 10 zveřejněných čísel
|
||||
cisla = Cislo.objects.filter(verejne_db=True)[:10]
|
||||
# cisla = Cislo.objects.filter(verejne_db=True)[:10]
|
||||
cisla = Cislo.objects.filter(poradi=1)[:10]
|
||||
|
||||
# op = os.path, udělá z argumentů cestu
|
||||
# op == os.path, udělá z argumentů cestu
|
||||
png_dir = op.join(settings.MEDIA_ROOT, "cislo", "png")
|
||||
|
||||
# seznam [(url obrázku, číslo)]
|
||||
|
@ -344,8 +345,8 @@ class ArchivView(generic.ListView):
|
|||
|
||||
subprocess.call([
|
||||
"convert",
|
||||
"-density", "180x180",
|
||||
"-geometry", "{}x{}".format(vyska, vyska),
|
||||
"-density", "300x300",
|
||||
"-geometry", "{}x{}".format(vyska, sirka),
|
||||
"-background", "white",
|
||||
"-flatten",
|
||||
"-rotate", str(90 * i),
|
||||
|
|
Loading…
Reference in a new issue