Lertsenem
53429428e9
Fix bug with special chars in filenames
...
When exporting svg, if an image file name contains a "&", it
will be escaped as "&" following html encoding. But when then asked
to embed the png into the svg for export, the file won't be found with
the sequence escaped. The solution is to unescape (using
html.parser.unescape) the line before extracting the png url.
2021-01-27 00:58:56 +01:00
Lertsenem
44aa8cb9c1
Add 4 chars to the covid option
...
- sephiroth
- steve
- piranha plant
- rob
2021-01-22 17:49:31 +01:00
Lertsenem
f0b0f27fdd
Fix Steve & Sephiroth in all templates
2021-01-18 01:31:26 +01:00
Lertsenem
430784d4be
Fix covid mask for Joker
2021-01-17 23:48:25 +01:00
Lertsenem
c69c2990d5
Fix char position in confismash templates
2021-01-17 23:48:08 +01:00
Lertsenem
17905a94d0
Add a covid option for confismash theme
...
The covid masks files and data have been moved from the rebootlyon2020
template directory to the template root (under _template), so now it can
be more easily used by any template. And so the covid opion has been
added to the confismash template
2021-01-09 19:07:26 +01:00
Lertsenem
6bc8e8c9e3
Add new export-options and svg_embed_png option
...
New set of options to tweak the export, and the first one: a way to
embed PNG images inside the resulting SVG file.
2021-01-06 09:33:36 +01:00
Lertsenem
863411f6ca
Fix confismash template
2021-01-05 17:16:43 +01:00
Lertsenem
132c469036
Fix lokrez import
2021-01-05 14:14:25 +01:00
Lertsenem
d9ae5ae346
Fix rebootlyon2020 template dimensions
2020-12-22 14:12:15 +01:00
Lertsenem
eccc900451
Add ssbu char Sephiroth
...
SEPHIROTH
2020-12-21 09:54:18 +01:00
Lertsenem
74162e5a61
Fix ssbu char bayonetta download from spriters
...
Bayonetta pics were previoiusly divided between two downloads, but have
now been merged into just one.
2020-12-21 09:53:23 +01:00
Lertsenem
7cf6c08ac9
Add 'web' template options to last 3 templates
2020-12-20 20:57:43 +01:00
Lertsenem
7d43fb91c6
Add 'web' template options for 2 templates
2020-12-20 19:26:31 +01:00
Lertsenem
3d04d83b08
Change PLAYERSKINSDB to a GET_PLAYERDATA function
2020-12-20 19:25:59 +01:00
Lertsenem
cd9c201191
Add export function 'generate_pic()'
2020-12-20 19:25:21 +01:00
Lertsenem
dcf9b676fa
Add API functions
...
get_templates list
get_infos_from_url
generate_pic
2020-12-20 19:24:45 +01:00
Lertsenem
05898aafca
Add 'animate' flag for confismash template
2020-12-05 12:34:42 +01:00
Lertsenem
a0414569ad
Add premices of challonge implementation
...
Not sure if I will go through with this. Challonge does not allow for
characters infos as far as I can tell.
2020-12-03 09:36:17 +01:00
Lertsenem
ee98d50417
Add new confismash template
2020-12-03 09:35:48 +01:00
Lertsenem
ab84b86568
Fix twitterHandle loading from lkrz file
2020-12-03 09:35:31 +01:00
Lertsenem
bdfdc398de
Add SSBU char Steve
2020-12-01 17:39:07 +01:00
Lertsenem
f7e4ff3fbd
Adjust chars pos in rebootlyon2020
2020-11-18 12:10:23 +01:00
Lertsenem
732b201a99
Update playerskins db
2020-09-17 17:29:17 +02:00
Lertsenem
7b8d56bc9c
Add redirect to players DB
2020-09-17 17:29:08 +02:00
Lertsenem
a454625207
Add support for json url for playerskins DB
2020-09-17 15:06:23 +02:00
Lertsenem
b9e7ed45b7
Move chars in meltdown template
...
Move palutena, terry and ridley.
2020-09-17 12:29:16 +02:00
Lertsenem
5a0744744d
Update players skins DB
2020-09-17 12:20:19 +02:00
Lertsenem
4be84b9d0c
Move pichu in reboot template
2020-09-17 12:19:59 +02:00
Lertsenem
4a8426b887
Move Tink in meltdown template
2020-09-17 12:19:45 +02:00
Lertsenem
e2d3e41a38
Add Ridley smashgg id
2020-09-17 12:18:21 +02:00
Lertsenem
24c5c2d12b
Update playerskins DB
2020-09-09 13:19:14 +02:00
Lertsenem
db9c6210fd
Update data in playerskins DB
2020-09-05 16:31:06 +02:00
Lertsenem
8454bfe335
Update playerskins DB
2020-09-04 12:49:44 +02:00
Lertsenem
9904d37e10
Update byleth f position in template meltownlyon2020
2020-09-04 12:46:59 +02:00
Lertsenem
6d12851ea5
Update playerskins DB
2020-09-04 12:46:23 +02:00
Lertsenem
83c62d45aa
Add char scaling to template rebootlyon2020
2020-09-03 15:51:41 +02:00
Lertsenem
3a5d7a5f2b
Update skins in playerskins DB
2020-09-03 13:44:05 +02:00
Lertsenem
b02093addf
Fix chars positions in template meltdownlyon2020
2020-09-02 09:13:07 +02:00
Lertsenem
0a219ca856
Add shadow to template meltdownlyon2020
...
Add a backdrop shadow behind the player rank for better readability.
2020-09-02 09:12:01 +02:00
Lertsenem
292a5cf413
Fix chars positions in template rebootlyon2020
2020-09-02 09:11:36 +02:00
Lertsenem
f35d467a40
Fix export issue
...
PNG came out wrong because of concurrency (?) issues where the SVG file
was converted before being fully generated. The solution was to close
the temporary file between each operation.
2020-09-02 09:09:35 +02:00
Lertsenem
4c6408bd61
Add --use-smashgg-prefix option
...
Since most local results don't use player-set prefixes from smash.gg but
rather sponsor infos from the playerskins DB, it's easier to toggle off
the download of those prefixes from smash.gg by default.
2020-09-02 09:07:36 +02:00
Lertsenem
9fd12d7a90
Add smashgg id for chrom and richter
2020-09-02 09:06:38 +02:00
Lertsenem
61d8074a67
Update playerskins DB
2020-09-02 09:06:12 +02:00
Niels Giorno
e5907ad380
Fix jinja2 dump in temporary file for Windows
...
tempfile.NamedTemporaryFile() creates **and opens** the file.
jinja2.stream().dump() will try to open the file too, if given a str
(filename). This does not cause issue on Linux, but on Windows the same
file cannot be open twice at the same time...
The solution was to pass a file pointer to 'dump()' instead of the
filename, so jinja2 does not need to open it again.
2020-08-28 12:53:46 +02:00
Niels Giorno
01f90de9c2
Fix export when cairosvg module is not found
...
If not found, the program should not try to export the image using it
anyway.
2020-08-28 12:52:53 +02:00
Niels Giorno
deb2e031a1
Fix temporary file suffix svg -> .svg
2020-08-28 12:51:49 +02:00
Niels Giorno
1eb7a022ff
Fix the loading of playerskins DB on Windows
...
Windows does not load the file with utf8 encoding by default, so I had
to specify it.
2020-08-28 12:50:26 +02:00
Niels Giorno
46bffbe700
Add a new cachedir param
2020-08-28 12:49:55 +02:00