-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vectorise armor silhouettes #25
base: master
Are you sure you want to change the base?
Conversation
LuaTeX will then auto-convert EPS to PDF.
Ich hab nachgefragt, die Originaldatei ist nicht vektorbasiert, eine bessere Variante kriegen wir also nicht. Du hast SVG und EPS eingecheckt, basiert das eine auf dem anderen? Wie hast du sie umgewandelt? Das Internet sagt, Inkscape kann die Umwandlung auf der Kommandozeile machen, allerdings nicht mit Gradienten bzw dann rasterisiert es. Ich fände es schön wenn wir nur die SVG im Repo hätten und die EPS in der Flake autogenerieren, single source of truth und so. |
Export mit Inkscape (GUI). Ich schaue nachher, ob ich das Ergebnis auf der Kommandozeile reproduzieren kann. Ein direkter Export als PDF wäre vermutlich noch besser. |
Mit Inkscape v1.0.2 und der Kommandozeilenoption Man kann L(u)aTeX beibringen, wie es nicht unterstützte Bildformate bei Bedarf in unterstützte umwandeln. Das werde ich mal versuchen. |
which generates PDFs from SVGs on the fly using Inkscape.
Den TeX-Code habe ich nun angepasst. Dummerweise bekomme ich Nix immer noch nicht zum Laufen, sodass ich das Flake nicht sinnvoll anpassen kann: Dort hinein gehören nämlich Abhängigkeiten von
|
for the conversion of SVG to PDF using Inkscape
https://gitlab.gnome.org/GNOME/librsvg mit Ich habe basierend auf deiner Arbeit einen neuen PR gemacht: #29 Da wandle ich die SVGs bei Erstellen des Nix packages in PDFs um; damit wird es nur einmal gemacht und nicht jedes Mal wenn ein Charakterbogen erstellt wird. Nach meinen Tests wird das resultierende PDF für den Heldenbogen damit ~9KB kleiner. Das erscheint weniger als ich erwartet hätte. Was war dein Resultat? Ich krieg deinen Code hier nicht zum Laufen, es fehlt wohl die eps-zu-pdf-Konversion. Die PDFs die aus der Konversion rausfallen sind jedenfalls nochmal kleiner als die EPS Dateien. Ich werde nicht ganz schlau daraus, warum das Heldenbogen-PDF dann so wenig Differenz in der Größe hat. Zumindest funktioniert die Skalierung, also ist es auf jeden Fall vektorisiert eingebunden. |
The vectorised versions are much smaller (and scale better).
On the issue tracker, you mention that the silhouettes were created by an acquaintance of yours for this project. If the originals are already vector data then it would be ideal to use those rather than the current raster-to-vector approach.