Skip to content

X (Obsolete) Making screenshots

Janez Demšar edited this page May 7, 2016 · 1 revision

Table of Contents

How to make screenshots?

  • On Win: a signle window (Alt-PrtScn). If mouse pointer is needed, user IrfanView.
  • On Mac: Cmd-Shift-3 (save to the file on the desktop) or Cmd-Crtl-Shift-3 (clipboard). To take a screenshot of a windows, same as above, but press space on the window. To get rid of large transparent border, run pastie script from the terminal.
  • For everything else, or if you need a screenshot with many open windows:
    • use some strange background color for desktop (like pink),
    • make screenshot, or select a part of the screen for screenshot,
    • save as PNG,
    • use any of the programs described below to get your screenshot ready for publication in orange web site.

Thumbnails, downscaling and transparency

  • Name your file as org-IME.png and run trim.py (from trunk/www/tools).
  Examples:
  trim files
  trim files -b 10
  trim -c file
  
  Filetypes (X-*.png):
    org-*.png: original snapshots (with border/backgroun color)
    tbn-*.png: thumbnail (white border/background)
    snp-*.png: snapshot (transparent border/background
    shc-*.png: showcase size (enhanced edges, white background, for front page)
  • trim.py checks which org-*.png are not processed yet, and processes them.

Where to put your files?

  • If this is widget documentation, use documentation directories (in doc/catalog or doc/catalog-rst).
  • If adding Screenshots or adding screenshots to the home page:
    • add to trunk/www/orange/screenshots, files are org-*.png, tbn-*.png in snp-*.png
    • for augmenting Orange's home page, add shc-*.png
    • add screenshot description to trunk/www/orange/screenshots.xml

Numbered labels in screenshots

  • Use stamper.py (iz trunk/www/tools), double-click creates a new label. Labels can be moved around, removed, order may be changed.
    expected filename format: org-name.png
    output: tag-name.txt (info file), num-name.png (number-marked png)
  
  Example:
  % python stamper.py o-snap.png
  
  Files and extensions:
  org-*.png  input image file
  num-*.png  tagged image file
  tag-*.txt  coordinates of tags
  • See an example of such documentation in dictyExpress.
  • Store all three files (figure, label info, and something else) for further reuse.

Image:Stamper.png

Use the same numbered labels in rst

  .. rst-class:: stamp-list
      A List:
          2. One
          3. Two
          4. Three
          5. Four