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

Misc. follow-up fixes to PR 6299 (Convert canvas thumbnails to PNG) #6441

Merged
merged 3 commits into from
Sep 11, 2015
Merged

Misc. follow-up fixes to PR 6299 (Convert canvas thumbnails to PNG) #6441

merged 3 commits into from
Sep 11, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

Follow-up to PR #6299.
Please refer to the individual commit messages for detailed information.

@timvandermeij Can you please review this? Since we're getting close to next Firefox release, it would be good to get this fixed now to avoid having to uplift patches manually.


Even with these patches, there are still some visual glitches (from #6299) present. Below is an illustration of what things looks like before thumbnails are rendered (note the small empty rectangles). This seems to be an issue related to the fact that you cannot set the width/height of an empty image (as opposed to a canvas).

I know how I'd like to fix this, but since that might require some discussion regarding the implementation, I wanted to submit the current PR to address the most important breakage first.

thumbs

…n in `PDFThumbnailView`

*Follow-up to PR 6299.*

This patch reduces unnecessary code duplication for the `canvas` to `image` conversion. It also does a bit of re-ordering (and adds new lines) in `_getPageDrawContext`, since that function currently is a bit hard to read.
…g a missing `canvas` to `image` conversion

*Follow-up to PR 6299.*
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/e381ae5e027a25b/output.txt

timvandermeij added a commit that referenced this pull request Sep 11, 2015
Misc. follow-up fixes to PR 6299 (Convert canvas thumbnails to PNG)
@timvandermeij timvandermeij merged commit 0976840 into mozilla:master Sep 11, 2015
@timvandermeij
Copy link
Contributor

Thank you for this follow-up and sorry for not having seen the missing convert statement! Looks much better this way.

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.

3 participants