/Resizer-for-Icon-Set

This python script resize your images to create an icon set. The icon set created has icons in size of from 8x8 to 128x128.

Primary LanguagePython

Resizer for Icon Set

This python script creates your image's clones in size of 128x128, 64x64, ..., 8x8 size.

  • Basic interface

SS1

  • GNOME shortcut for context menu

SS2

Installation

Requires: Python 3.x | tkinter | PIL

PIL can installed with following steps:

$ sudo apt-get install python3-pip
$ sudo apt-get install python3-dev python3-setuptools
$ sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev
$ sudo pip3 install Pillow

For running script:

$ python3 ResizerIconSet.py
$ python3 ResizerIconSet.py /path/example.jpg

Create Shortcuts

For symlink,

$ chmod +x ResizerIconSet.py
$ sudo cp ResizerIconSet.py /usr/lib
$ sudo ln -s /usr/lib/ResizerIconSet.py /usr/bin/resizericon
$ resizericon

For GNOME context menu:

$ cp Resizer ~/.local/share/nautilus/scripts
$ chmod +x ~/.local/share/nautilus/scripts/*

Now, you can see "Scripts" on context menu of right click of files.