Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    colorific 0.2.1

    Download button

    No screenshots available
    Downloads: 192  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lars Yencken | More programs
    ISC License / FREE
    May 8th, 2012, 02:16 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    colorific description

    Automatic color palette detection

    colorific provides image palette detection in Python modelled after Paul Annesley's color detector in PHP.

    colorific determines what the most important colors used in your image are, and if one of them is a background color.

    Usage

    colorific is meant to run in a streaming manner. You can run it on a single image by echo'ing in the image::

         echo myimage.png | colorific
        myimage.png #3e453f,#2ea3b7,#bee6ea,#51544c,#373d38 #ffffff


    Each input line should be a filename. Each output line will be a tab-delimited string containing the filename, major colors in order, and (optionally) a detected background color.

    To run on an entire directory tree of images::

        find . -name '*.jpg' | colorific

    `colorific` has an experimental multiprocessing mode, accessed by the `-n`
    argument. For example, to run the same example using 8 processes::

       find . -name '*.jpg' | colorific -p 8

    You can also get usage information by running `colorific --help`.

    Example

    Here's a concrete example of use. This is the NASA Ares logo:

    http://media.quietlyamused.org.s3.amazonaws.com/palette/500px-NASA-Ares-logo.svg.png

    Let's run palette detection on it:

         echo 500px-NASA-Ares-logo.svg.png | colorific
        500px-NASA-Ares-logo.svg.png  #0065b9,#bbd6ec,#ff0000


    These correspond to the colors:

    http://media.quietlyamused.org.s3.amazonaws.com/palette/ares-palette.png

    Note that black and white have been stripped away, and minor colors introduced through antialiasing are not present.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    color palette | Python library | image palette | Python | color | palette

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM