Skip to content
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

Numark Mixtrack Pro 3: Replace layout image GIF with SVG #297

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

Holzhaus
Copy link
Member

No description provided.

@Holzhaus Holzhaus requested a review from ronso0 November 11, 2020 10:16
Holzhaus added a commit to Holzhaus/manual that referenced this pull request Nov 11, 2020
Since LaTeX doesn't support SVG files, we need to convert them to a
format that it can understand. Until now, we used
`sphinx.ext.imgconverter` for that. Unfortunately, that has various
issues:

- It depends on ImageMagick which is buggy on some platforms (e.g. on
  the `ubuntu-latest` image in GitHub Actions)
- SVGs are rasterized, so that you can't zoom in losslessly in PDFs
- Rasterization also happens for HTML documentation, even though it's
  unnecessary

By replacing it with `sphinxcontrib.rsvgconverter`, all of these are
fixed. For LaTeX, this converts the SVG to a vector PDF which can be
used with `\includegraphics{}`.

What it doesn't do is converting GIF images. These also cause problems
with the LaTeX build, but we didn't notice that because
`sphinx.ext.imgconverter` converted them as well. Fortunately, we only
have 2 GIF images in our source tree and can just use a different
format. Hence, this PR depends on mixxxdj#298 and mixxxdj#297.
Holzhaus added a commit to Holzhaus/manual that referenced this pull request Nov 11, 2020
Since LaTeX doesn't support SVG files, we need to convert them to a
format that it can understand. Until now, we used
`sphinx.ext.imgconverter` for that. Unfortunately, that has various
issues:

- It depends on ImageMagick which is buggy on some platforms (e.g. on
  the `ubuntu-latest` image in GitHub Actions)
- SVGs are rasterized, so that you can't zoom in losslessly in PDFs
- Rasterization also happens for HTML documentation, even though it's
  unnecessary

By replacing it with `sphinxcontrib.rsvgconverter`, all of these are
fixed. For LaTeX, this converts the SVG to a vector PDF which can be
used with `\includegraphics{}`.

What it doesn't do is converting GIF images. These also cause problems
with the LaTeX build, but we didn't notice that because
`sphinx.ext.imgconverter` converted them as well. Fortunately, we only
have 2 GIF images in our source tree and can just use a different
format. Hence, this PR depends on mixxxdj#298 and mixxxdj#297.
@ronso0
Copy link
Member

ronso0 commented Nov 12, 2020

LGTM

@ronso0 ronso0 merged commit 46a49f6 into mixxxdj:2.3 Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants