LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2014, 07:15 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Clone of TKPAINT for LINUX?


Hello,

I was looking for a lightweight replacement of INKSCAPE.

It seems that there is only xpaint but it is not Vector graphics. XFIG is very very old, and not that good compared to the great xpaint features.

I have found TKPAINT that can be started over WINE. wine tkpaint.exe

tkpaint.exe is really beautiful. Nice icons, and it is very lightweight. The fonts are also awesome. Much nicer than free linux fonts.

Would you know a nice port of tkpaint for linux, especially for debian stable/testing? (into the repos for instance)

Thank you
Attached Thumbnails
Click image for larger version

Name:	tkpaint-wine.png
Views:	26
Size:	25.9 KB
ID:	17018  

Last edited by Xeratul; 12-05-2014 at 07:16 AM.
 
Old 12-05-2014, 07:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is a package `tkpaint´ for Ubuntu 10.04
http://packages.ubuntu.com/lucid/tkpaint
> tkpaint_1.5.4-7_all.deb

Installs and works OK in e.g. Debian Wheezy :
# gdebi tkpaint_1.5.4-7_all.deb

-
 
Old 12-05-2014, 07:55 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by knudfl View Post
There is a package `tkpaint´ for Ubuntu 10.04
http://packages.ubuntu.com/lucid/tkpaint
> tkpaint_1.5.4-7_all.deb

Installs and works OK in e.g. Debian Wheezy :
# gdebi tkpaint_1.5.4-7_all.deb

-
I have no /usr/bin/wish and I cannot find it into debian package html page.
tkpaint: /usr/bin/wish: bad interpreter: No such file or directory


tgif is awful !
Code:
$ tgif
Fatal Error in OpenFont(): Cannot open the Default(Msg)Font '-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'.
Tgif aborted.


what about?
http://sourceforge.net/projects/ipe7/files/ipe/7.1/
ipe is actually better since it can import PNG, and EVEN resize them !!!

Last edited by Xeratul; 12-05-2014 at 08:06 AM.
 
Old 12-05-2014, 08:27 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #3 .

When you do # gdebi tkpaint_1.5.4-7_all.deb
... the package `tk8.4´ will be installed : /usr/bin/wish8.4

? 'tkpaint' may work with any version of wish ?

Please install the default tk : `tk8.5´.
.. The '/etc/alternatives/' mechanism will create : wish -> wish8.5 .

* If you want to switch to the "8.4 wish" :
# update-alternatives --config wish
... and select /usr/bin/wish8.4

-
 
Old 12-05-2014, 08:34 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by knudfl View Post
← #3 .

When you do # gdebi tkpaint_1.5.4-7_all.deb
... the package `tk8.4´ will be installed : /usr/bin/wish8.4

? 'tkpaint' may work with any version of wish ?

Please install the default tk : `tk8.5´.
.. The '/etc/alternatives/' mechanism will create : wish -> wish8.5 .

* If you want to switch to the "8.4 wish" :
# update-alternatives --config wish
... and select /usr/bin/wish8.4

-
thank you

I give up. there is no single good lightweight vector graphics on linux.

Only xpaint is good and light. the rest, xfig is really uncomfortable to use. there is no single nice zooming and so on.

I guess the best is to use pdfimages and try to fight to get sthg out of the jpg with some ttricks.
 
Old 12-05-2014, 08:36 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I give up.
Why ?

Should be an easy thing to do # apt-get install tk8.5
 
Old 12-05-2014, 08:39 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by knudfl View Post
Why ?

Should be an easy thing to do # apt-get install tk8.5

done.
Code:
pdate-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode
ldconfig: /usr/lib/libgraph.so.1 is not a symbolic link

Processing triggers for menu ...
then I get for tgif:
Code:
$ tgif 
Fatal Error in OpenFont(): Cannot open the Default(Msg)Font '-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'.
Tgif aborted.
and
wget http://archive.ubuntu.com/ubuntu/poo....4.orig.tar.gz

Code:
./configure
make
./tkpaint
returns:
Code:
./tkpaint 
Error in startup script: couldn't open "/usr/lib/tkpaint/gifs/rectangle.gif": no such file or directory
    while executing
"image create photo -file [file join $LIBDIR gifs $gif]"
    ("foreach" body line 3)
    invoked from within
"foreach {btype var row col gif command} $Buttons {
    regexp {([^.]+)\.} $gif dummy b
    set im [image create photo -file [file join $LIBDIR gifs $g..."
    (file "./tkpaint" line 661)
tkpaint is not coded in C and nor using X11 libs only.
I saw that tkpaint cannot resize a png or a picture.
It cannot even edit nice the vectors,...

well, there is no single program lightweight on linux for vector graphics.
xfig is really uncomfortable to use.

Last edited by Xeratul; 12-05-2014 at 08:42 AM.
 
Old 12-05-2014, 09:13 AM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
OK. Tkpaint can
- import ppm and bmp
- can re/zoom the picture to make it smaller
- it has a function to use fonts and move them

ok, it isnt that bad.

ok, I got the src, make it and run it with ./tkpaint

I vim the tkpaint, and could change the key shortcuts.


Code:
5292 ########## ACCELERATORS:
5293 #bind all <Control-Key-u> {.mbar.shape.menu invoke Ellipse}
5294 #{.mbar.edit.menu invoke "Undo last change"}
5295 bind all <Key-o> {.mbar.shape.menu invoke Ellipse}
5296 bind all <Key-l> {.mbar.shape.menu invoke Line}
5297 bind all <Key-p> {.mbar.shape.menu invoke Spline}
5298 bind all <Key-a> {select1object}
5299 bind all <Key-e> {select1object}
5300 bind all <Key-m> {.mbar.edit.menu invoke "Move object"}
5301 bind all <Key-v> {.mbar.edit.menu invoke "Move object"}
5302 bind all <Key-r> {.mbar.shape.menu invoke Rectangle}
5303 bind all <Key-u> {
5304     if {$Zoom(factor)<5} {
5305          set z [expr $Zoom(factor)+0.5]
5306     } else { 
5307          set z 0.5
5308     }
5309     Zoom $z
5310 }
5311 bind all <Key-d> {
5312     if {$Zoom(factor)<5} {
5313          set z [expr $Zoom(factor)-0.5]
5314     } else { 
5315          set z 0.5
5316     }
5317     Zoom $z
5318 }
5319  
5320





Anyone having the key shorcuts like illustrator?

thank you

Last edited by Xeratul; 12-05-2014 at 09:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone a Linux VM DrinkinHomeBrew Linux - Newbie 3 05-29-2012 01:11 PM
Linux Clone OOsorio Linux - Newbie 2 08-03-2010 04:04 PM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
sketchup clone for linux anantyk Linux - General 0 06-28-2008 07:46 PM
Windows NT looking more like a Linux Clone Qebex Linux - Software 11 09-25-2002 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration