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

Poor quality of resulting formula images #14

Open
chlarsen opened this issue Jun 6, 2020 · 0 comments
Open

Poor quality of resulting formula images #14

chlarsen opened this issue Jun 6, 2020 · 0 comments

Comments

@chlarsen
Copy link

chlarsen commented Jun 6, 2020

Dear Andreas,
Thank you a million times for all the terrific work on DokuWiki, this plugin included.
I seem to have a pesky issue with the quality of the resulting formula display on screen (and then, of course also in any exported .pdf or .odt format. Here is a simple example:

<m 11>\ \ \ \ Out-of-Pocket spending as percentage of total health expenditure</m>

<m 13>\= { {Out-of-pocket spending} / {Total health expenditure}} * 100</m>

I get the attached formula (as image).
image
I have deliberately added some trailing heading for you to see the difference in sharpness.
I am running PHP 7.3 on FreeBSD 11.3 in a jail, and have the required dependencies instaled, or so I hope:

===>>> freetype2-2.10.2
===>>> libgd-2.3.0,1
===>>> php73-gd-7.3.18
===>>> php73-tokenizer-7.3.18
===>>> php73-zlib-7.3.18
===>>> png-1.6.37

Anything I may have missed?
Thank you so much!
Chris

splitbrain added a commit that referenced this issue Jan 2, 2023
It seems that manually adjusting the vertical alignment is no longer
needed, since inline-block is doing the correct thing already.

For exporting to PDF a higher resolution image is needed. In theory this
could also be used in the browser, but on "normal" displays that looks
even shittier. The proper approach would probably be to render the image
in multiple size and use a source set...

Ideally the underlying library would need to be rewritten to use SVG.

Addresses splitbrain/dokuwiki-plugin-dw2pdf#433, #14 and #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant