You are not logged in.

#1 2014-07-21 23:10:49

segfaultless
Member
Registered: 2014-03-25
Posts: 7

Tyled- A python image tiler

Hello all,

I have recently written tyled (https://github.com/HarveyHunt/tyled/tree/develop) as I couldn't find an image tiler that I liked.

Tyled can arrange multiple images into a grid or stripes. It can also apply effects to the outputted image, such as blurring and resizing.

A .Xresources file can be used to indicate which colours tyled should use for the final image, here is an example of my .Xresource file:

http://i.imgur.com/iHDHwmd.png




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by segfaultless (2014-07-21 23:11:28)

Offline

#2 2014-07-22 08:46:46

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Tyled- A python image tiler

Seems like a cool way to generate some wallpaper images. I'm having trouble running it though:

$ tyled -o tyled.png -w 1920 -h 1080 -xc /home/brandon/.Xresources -p grid
Traceback (most recent call last):
  File "/home/brandon/.local/bin/tyled", line 9, in <module>
    load_entry_point('tyled==0.0.1', 'console_scripts', 'tyled')()
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/tyled.py", line 119, in init
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/tyled.py", line 33, in main
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 8, in apply_pattern
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 29, in grid
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 14, in _make_grid
IndexError: list index out of range

Also, you should make  a PKGBUILD and add it to the AUR!

Last edited by jakobcreutzfeldt (2014-07-22 08:47:46)

Offline

#3 2014-07-22 12:41:18

segfaultless
Member
Registered: 2014-03-25
Posts: 7

Re: Tyled- A python image tiler

jakobcreutzfeldt wrote:

Seems like a cool way to generate some wallpaper images. I'm having trouble running it though:

$ tyled -o tyled.png -w 1920 -h 1080 -xc /home/brandon/.Xresources -p grid
Traceback (most recent call last):
  File "/home/brandon/.local/bin/tyled", line 9, in <module>
    load_entry_point('tyled==0.0.1', 'console_scripts', 'tyled')()
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/tyled.py", line 119, in init
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/tyled.py", line 33, in main
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 8, in apply_pattern
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 29, in grid
  File "/home/brandon/.local/lib/python3.4/site-packages/tyled-0.0.1-py3.4.egg/tyled/patterns.py", line 14, in _make_grid
IndexError: list index out of range

Also, you should make  a PKGBUILD and add it to the AUR!

I'll make a PKGBUILD today.

Would you mind posting your .Xresources file please?

Offline

#4 2014-07-22 12:59:56

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Tyled- A python image tiler

My guess is that it's not handling #define statements correctly

#define O_yellow #787b39
#define O_orange #8b7539
#define O_red #d73c5b
#define O_magenta #c94196
#define O_violet #875fda
#define O_blue #437bb0
#define O_cyan #3f8090
#define O_green #3c8469

! Dark
#define O_base03 #0a0b0d
#define O_base02 #242629
#define O_base01 #5c5e62
#define O_base00 #6a6b6c
#define O_base0 #838485
#define O_base1 #8e9195
#define O_base2 #d2d4d9
#define O_base3 #f6f6f8

*background: O_base03
*foreground: O_base0
*fading: 40
*fadeColor: O_base03
*cursorColor: O_base1
*pointerColorBackground: O_base01
*pointerColorForeground: O_base1

*color0: O_base02
*color1: O_red
*color2: O_green
*color3: O_yellow
*color4: O_blue
*color5: O_magenta
*color6: O_cyan
*color7: O_base2
*color9: O_orange
*color8: O_base03
*color10: O_base01
*color11: O_base00
*color12: O_base0
*color13: O_violet
*color14: O_base1
*color15: O_base3

Xcursor.theme: Vanilla-DMZ-AA
Xcursor.size: 16
xterm*faceName: Liberation Mono-9
Emacs.font: Liberation Mono-9
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

Offline

Board footer

Powered by FluxBB