All Projects → mnoorenberghe → mozscreenshots

mnoorenberghe / mozscreenshots

Licence: other
Take screenshots of Mozilla applications in various UI configurations

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects
Batchfile
5799 projects
VBScript
123 projects

Projects that are alternatives of or similar to mozscreenshots

Www.moztw.org
Repository of moztw.org
Stars: ✭ 48 (+182.35%)
Mutual labels:  firefox, mozilla
Librefox
License: Mozilla Public License 2.0
Stars: ✭ 1,574 (+9158.82%)
Mutual labels:  firefox, mozilla
Foxshot
Capture web page screenshots using headless Firefox!
Stars: ✭ 52 (+205.88%)
Mutual labels:  firefox, screenshot
Pulse
We're building the next generation of Firefox, and we're focusing on real-world speed and performance. Pulse lets you give our engineers feedback about your experience on websites that work well in Firefox and on websites that don't.
Stars: ✭ 15 (-11.76%)
Mutual labels:  firefox, mozilla
User.js
user.js -- Firefox configuration hardening
Stars: ✭ 2,354 (+13747.06%)
Mutual labels:  firefox, mozilla
Bedrock
Making mozilla.org awesome, one pebble at a time
Stars: ✭ 953 (+5505.88%)
Mutual labels:  firefox, mozilla
Ffck
🦊 & 🧅 hardening
Stars: ✭ 72 (+323.53%)
Mutual labels:  firefox, mozilla
Downthemall
The DownThemAll! WebExtension
Stars: ✭ 512 (+2911.76%)
Mutual labels:  firefox, mozilla
Min Vid
Popout video player in Firefox
Stars: ✭ 180 (+958.82%)
Mutual labels:  firefox, mozilla
Lockbox Extension
Experimental Firefox extension for login management experiences, not being actively developed
Stars: ✭ 130 (+664.71%)
Mutual labels:  firefox, mozilla
Firefox decrypt
Firefox Decrypt is a tool to extract passwords from Mozilla (Firefox™, Waterfox™, Thunderbird®, SeaMonkey®) profiles
Stars: ✭ 735 (+4223.53%)
Mutual labels:  firefox, mozilla
RobotEyes
Image comparison for Robot Framework
Stars: ✭ 62 (+264.71%)
Mutual labels:  imagemagick, image-comparison
Lockwise Android
Firefox's Lockwise app for Android
Stars: ✭ 607 (+3470.59%)
Mutual labels:  firefox, mozilla
Focus Ios
Firefox Focus for iOS
Stars: ✭ 989 (+5717.65%)
Mutual labels:  firefox, mozilla
Fenix
Firefox for Android
Stars: ✭ 5,423 (+31800%)
Mutual labels:  firefox, mozilla
Cyberfox
cyberfox code repository
Stars: ✭ 66 (+288.24%)
Mutual labels:  firefox, mozilla
Ca Archive
Catalog of classic Firefox add-ons created before WebExtensions apocalypse
Stars: ✭ 383 (+2152.94%)
Mutual labels:  firefox, mozilla
Debugger
The faster and smarter Debugger for Firefox DevTools 🔥🦊🛠
Stars: ✭ 4,602 (+26970.59%)
Mutual labels:  firefox, mozilla
Firefox Ios
Firefox for iOS
Stars: ✭ 10,638 (+62476.47%)
Mutual labels:  firefox, mozilla
Lockwise Ios
Firefox's Lockwise app for iOS
Stars: ✭ 224 (+1217.65%)
Mutual labels:  firefox, mozilla

mozscreenshots

Take screenshots of Mozilla applications in various UI configurations.

The tool will setup the browser in every possible combination of the specified configuration sets (e.g. WindowSize) and take a screenshot. Note that the order of the sets affects the order that the configurations are setup. If no sets are specified, the default is: TabsInTitlebar Tabs WindowSize Toolbars LightweightThemes.

Note that the extension (XPI) code has mostly moved to https://dxr.mozilla.org/mozilla-central/source/browser/tools/mozscreenshots/mozscreenshots/extension/

Documentation on MDN

dependencies

  • mozrunner (mozscreenshots subclasses mozrunner for standalone execution only)
  • compare and convert from ImageMagick for compare_screenshots
  • apngasm(optional) to generate animated PNG comparison images

capturing screenshots from mozilla source

mach mochitest --subsuite screenshots
mach mochitest --subsuite screenshots --setenv MOZSCREENSHOTS_SETS=DevTools
mach mochitest --subsuite screenshots --setenv MOZSCREENSHOTS_SETS=DevEdition,TabsInTitlebar,Tabs,WindowSize,Toolbars

capturing screenshots from the standalone executable (not recently tested)

To output the list of valid sets, use --list-sets.

installation

pip install -U mozscreenshots

after installation:

mozscreenshots -b /Applications/Firefox.app/Contents/MacOS/firefox [sets]

examples

mozscreenshots -b /Applications/Nightly.app/Contents/MacOS/firefox Tabs WindowSize LightweightThemes
mozscreenshots -b /c/Program\ Files\ \(x86\)/Mozilla\ Firefox/firefox.exe SystemTheme WindowSize Toolbars
mozscreenshots -b ~/nightly/firefox Tabs WindowSize Toolbars LightweightThemes

output

The screenshots can be found in the following directories for now (issue 9 will make them configurable):

  • In MOZ_UPLOAD_DIR if the environment variables is defined
  • /%TmpD%/mozscreenshots/ (a temporary directory which is output at the before capturing begins)

caveats

  • The SystemTheme configuration attempts to change the Windows theme while the application is running which doesn't always work correctly. The alternative is to manually change the Windows theme before a run and not including the SystemTheme set.
  • On OS X, if you have another instance of the binary running from the same path (e.g. with a different profile), the wrong application may be captured. You can use a symlink to workaround the issue.
  • There is no attempt to reset the profile or system theme back to their original value after a run. The Windows theme can be re-set manually and runs shouldn't be performed on a user's default profile.

fetching images from automation

Use fetch_screenshots to fetch screenshots from Mozilla automation (e.g. Try server):

pip install -U mozscreenshots
fetch_screenshots -n 2017-01-17
fetch_screenshots --project mozilla-central -r 3e275d37a06236981bff399b7d7aa0646be3fee7
fetch_screenshots -r <try_rev>

comparing images for changes

Use compare_screenshots to compare image files or directories (recursively) using ImageMagick. System UI (e.g. the clock and taskbar) is cropped out of the images when necessary so they aren't included in image comparisons and generate false positives.

pip install -U mozscreenshots
compare_screenshots  mozilla-central/08138045c38c/ try/5f6ca9194dd9/

web UI

https://screenshots.mattn.ca/compare/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].