Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: Rich on July 10, 2016, 04:10:43 PM
-
This is for anyone looking to do some basic cropping, resizing, and labeling of images. The executable currently weighs
in at 63K and depends on imlib2 and gtk1. Here's a screenshot of the program:
(http://i63.tinypic.com/e7l114.png)
Here's the load dialog:
(http://i64.tinypic.com/nz572d.png)
And a layout dialog for placing multiple images on one sheet:
(http://i67.tinypic.com/28rz3ty.png)
I'm looking for some volunteers to do some testing prior to submitting it to the repository. Will post more info on features
when I get back home tonight.
-
Where is the home page and source code available?
-
Hi bmarkus
This is a program that I wrote. It does not have a home page and I don't do web sites. If someone is interested, I will
make the source code available.
-
The following image provides some more info about the controls in the sidebar:
(http://i68.tinypic.com/mm2yj8.png)
The controls in the topbar are for creating/altering labels. Most of the controls should be obvious, but here are a few notes:
Mouse - This has nothing to do with labels. This is the mouse position in the current view in image coordinates.
Show - Show/hide an individual label.
Show All - Show/hide all labels.
X, Y - Pixel location of top left corner of label.
Font - List of available true type fonts found on the computer. By default, the program searches, "/usr/share/fonts",
"/usr/local/share/fonts", and "~/.fonts". The search is recursive. Additional font paths can be added to the config file.
Size - Font size in pixels
FG/BG Color - Select color of text and color of background or none. Clicking the entry field of the combo box calls up a
color select dialog for customizing colors.
All - There are several buttons called "All". They are used to apply a setting to all the labels.
The program remembers settings such as size and placement of windows, source and destination directories for images,
most recently used font parameters and layout parameters, etc.
Images can be rotated when loading.
(http://i67.tinypic.com/2gy39xf.png)
The program does not preserve EXIF data.
-
Hi Rich
it looks great. May I suggest github.com to host code and docs?
Just one note. gtk1 is really ancient now, if you can port it to gtk2 or gtk3 it would be great.
Béla
-
..but gtk1 is much, much smaller than gtk2/gtk3 :)
-
Hi bmarkus
Glad you like it. I chose gtk1 for its small size and its stability since it no longer gets updated.
-
Hi bmarkus
Glad you like it. I chose gtk1 for its small size and its stability since it no longer gets updated.
If you have a graphical environment there is great chance that gtk2 already installed. Also it looks and feel more familiar.
Anyhow, it is a nice app!
-
You've written apps for fltk and gtk1 now - which do you prefer?
-
Hi curaga
Actually gtk1 is the first GUI toolkit I've used. If you are referring to my grabber program or the tinyclock.c program
found here:
http://forum.tinycorelinux.net/index.php/topic,13793.msg77139.html#msg77139
I was working with X directly in those.
Gtk1 seems pretty easy for the most part. The combo box gave me fits so I wound up making my own. Fltk was never
in the running since there are no C bindings.
-
You don't really have to write all OO C++ code to use FLTK - if the existing widgets work for you, you can pretty much write C and compile with g++. FLTK requires no weirdness.