WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: picmanip, a lightweight picture manipulation program  (Read 3381 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
picmanip, a lightweight picture manipulation program
« 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:

Here's the load dialog:

And a layout dialog for placing multiple images on one sheet:

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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: picmanip, a lightweight picture manipulation program
« Reply #1 on: July 11, 2016, 12:21:38 AM »
Where is the home page and source code available?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: picmanip, a lightweight picture manipulation program
« Reply #2 on: July 11, 2016, 01:19:38 AM »
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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: picmanip, a lightweight picture manipulation program
« Reply #3 on: July 11, 2016, 03:02:46 AM »
The following image provides some more info about the controls in the sidebar:

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.


The program does not preserve EXIF data.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: picmanip, a lightweight picture manipulation program
« Reply #4 on: July 11, 2016, 03:28:47 AM »
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
« Last Edit: July 13, 2016, 02:45:00 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: picmanip, a lightweight picture manipulation program
« Reply #5 on: July 11, 2016, 05:59:44 AM »
..but gtk1 is much, much smaller than gtk2/gtk3  :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: picmanip, a lightweight picture manipulation program
« Reply #6 on: July 11, 2016, 10:54:43 AM »
Hi bmarkus
Glad you like it. I chose gtk1 for its small size and its stability since it no longer gets updated.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: picmanip, a lightweight picture manipulation program
« Reply #7 on: July 11, 2016, 12:10:57 PM »
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!
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: picmanip, a lightweight picture manipulation program
« Reply #8 on: July 12, 2016, 02:58:21 PM »
You've written apps for fltk and gtk1 now - which do you prefer?
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: picmanip, a lightweight picture manipulation program
« Reply #9 on: July 12, 2016, 03:49:58 PM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: picmanip, a lightweight picture manipulation program
« Reply #10 on: July 13, 2016, 04:16:33 AM »
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.
The only barriers that can stop you are the ones you create yourself.