Giter Club home page Giter Club logo

orange-tools's Introduction

Orange Tools

Handy utilities used in development of Orange data mining software or its documentation.

trim.py

Trims the input PNG file. The upper-left pixel of the image is considered on the border and is used to mark the border color. Border is clipped-out, border color is considered a background and is transparent.

% python trim.py examples/paint-data.png
.. processing /Users/username/Desktop/paint-data.png, size (1264, 858)
   -> trimming: paint-data.png, size (1241, 834)
   -> thumb: paint-data-thumb.png, size (180, 120)

To construct a appropriate screenshot file on Windows 8, go to Control Panel, type "shadows" in the search box, and go to System, then there disable "Show shadows under windows". Choose a weird enough color for the background.

todo.py

Manage list of stickers for Orange. Prepares a list of html pages for sticker printout. The following call will print out all stickers that are marked not printed and are of priority 3.

% python todo.py -p 3

Stickers are defined on google sheet that can be accessed by biolab members.

stamper.py

Run it on a screenshot to place labels (circled numbers from 1 to 10). These augmented screenshots are then used in the widget documentation.

widget_icon_export.py

Run ./widget_icon_export.py [<format>] [<export-icon-size>] to export all currently installed widgets' icons into the current directory. If no arguments are given, format defaults to 'png', export-icon-size defaults to 100.

convert-to-indexed.sh

Run bash convert-to-indexed.sh <path-to-folder>. The script creates a new folder with indexed images. It requires ImageMagick first. On OSX, install with brew install imagemagick. See ImageMagick for alternatives.

tinify_images.py

This uses TinyPNG API to compress images in a given directory.

Example usage: python tinify_images.py -k <your_api_key> -p <path_to_dir> optionaly use -e parameter to speficy file extension (default are .png and .jpg).

orange-tools's People

Contributors

ajdapretnar avatar ales-erjavec avatar astaric avatar blazzupan avatar irgolic avatar jakakokosar avatar janezd avatar jerneju avatar kernc avatar lanzagar avatar markotoplak avatar mstrazar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orange-tools's Issues

Trim.py works poorly on Win10

Trim.py is not properly trimming background on Win10. It cuts edges, but doesn't remove the background color. Need it for writing documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.