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

Limit the maximum zoom level #56

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Limit the maximum zoom level #56

merged 1 commit into from
Oct 31, 2024

Conversation

kepstin
Copy link
Contributor

@kepstin kepstin commented Oct 31, 2024

The BigBlueButton client (in current versions) doesn't allow zooming in further than 400% (i.e. 1/4 of document width). However, there are occasionally glitches which can cause a higher zoom level to be reported

  • sometimes, extremely high (an issue was reported where the events.xml <widthRatio> was 0.06944444444444445 - that corresponds to a zoom level of 144000%).

This can cause issues in the rendering. For example, if a shape with text is being drawn, the required font size might exceed the maximum limits of the freetype text rasterizer. (With newer versions of cairo, this error is recoverable, but with older versions like used on Ubuntu 20.04 the error will crash the video generation tool.)

Apply a safety limit on the zoom level so that it does not exceed 800% (i.e. 1/16 of document width).

@kepstin kepstin requested a review from antobinary October 31, 2024 17:20
The BigBlueButton client (in current versions) doesn't allow zooming in
further than 400% (i.e. 1/4 of document width). However, there are
occasionally glitches which can cause a higher zoom level to be
reported. Sometimes *extremely* high (an issue was reported where the
events.xml `<widthRatio>` was 0.06944444444444445 - that corresponds to
a zoom level of 144000%).

This can cause issues in the rendering. For example, if a shape with
text is being drawn, the required font size might exceed the maximum
limits of the freetype text rasterizer. (With newer versions of cairo,
this error is recoverable, but with older versions like used on Ubuntu
20.04 the error will crash the video generation tool.)

Apply a safety limit on the zoom level so that it does not exceed 800%
(i.e. 1/16 of document width).
@antobinary antobinary merged commit c8cbb96 into main Oct 31, 2024
4 of 5 checks passed
@kepstin kepstin deleted the zoom-limit branch October 31, 2024 18:36
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

Successfully merging this pull request may close these issues.

2 participants