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

Replace the RTL images with CSS transforms of the standard images (issue 11766) #11767

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Mar 30, 2020

This avoids unnecessary duplication of many images, thus reducing the size of PDF.js image resources slightly.

Note that since the images should only be flipped horizontally, this required specifying the horizontal/vertical scaling separately for the hiDPI-images.

Fixes #11766

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/63b3f22aba65d5f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/63b3f22aba65d5f/output.txt

Total script time: 2.40 mins

Published

…sue 11766)

This avoids unnecessary duplication of many images, thus reducing the size of PDF.js image resources slightly.

Note that since the images should only be flipped horizontally, this required specifying the horizontal/vertical scaling separately for the hiDPI-images.
@timvandermeij timvandermeij merged commit 35c9f8d into mozilla:master Mar 30, 2020
@timvandermeij
Copy link
Contributor

Nice work! Aside from a reduction in image resources, this also makes the viewer easier to restyle, both for us and for third-party usage.

@Snuffleupagus Snuffleupagus deleted the issue-11766 branch March 30, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use CSS transform instead of including RTL equivalents of images
3 participants