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

Firefoxでもスクショが取れるようにする #38

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

windymelt
Copy link
Owner

@windymelt windymelt commented Apr 20, 2023

solves: #

前提 / Prerequisites

  • Chromeには妙なバグがあり、画面の解像度が800x600くらいになってしまうことがある(バージョンによる)

なぜこのPRが必要になったか / Why do we need this PR

  • 一時的な回避策としてFirefoxを使えるようにしたい

なにをやったか / What I did

  • Firefoxにもスクショを撮影するオプションがあるので、既存のインターフェイスを一部修正しつつ実装した。
  • Firefoxは出力先ファイル名を指定できない(指定できるという情報があるが、手元で動作しなかった)ので、Mutexを使って同時に走れなくした
  • Mutexを導入したのでIO型になった
  • -s firefoxオプションをつけるとFirefoxで稼動するようになる

補足 / Supplementary information

Firefoxは透過背景でのスクショをサポートしていないので、動画との組み合わせが今後あるなら問題になるかも

@windymelt windymelt merged commit 1695f31 into main Apr 21, 2023
@windymelt windymelt deleted the firefox-screenshot branch April 21, 2023 07:05
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.

1 participant