LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2009, 08:36 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Rotate and trim pictures


Can someone please recommend a good image editing tool for Linux that will help me accomplish the tedious task of rotating and trimming a lot of images in the most convenient possible way?

I have been taking a lot of pictures lately and often have to "align" them before they're ready to be shared. I need to rotate them a few degrees so they don't look crooked/tilted.

The Gimp does that, but after the image is rotated, black corners have to be trimmed out, probably with the Crop tool. That's easier said than done, I often miss the exact cropping spots and have to undo and try again, it's time consuming. The Gimp doesn't do that automatically.

Then I began to use Fotoxx. It has a pretty good Rotate tool that also has a Trim button. But Fotoxx is annoying in many ways, most notably for the fact that it's still too new and unstable, it crashes a lot. I can only edit 3 or 4 images before it crashes. 5 images if I am really lucky. Then I have to relaunch it, and it doesn't remember the directory I was working on, I have to type the path all over again, and my computer becomes a Pentium 166 if I dare launch any other image application e.g. Kuickshow while Fotoxx is running, it's a nightmare.

Can someone please recommend another image editing tool for Linux that will help me do this tedious task of rotating and trimming a lot of images in the most convenient possible way?

TIA
 
Old 05-12-2009, 05:31 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
For this task, you pretty much have to do it by hand---since every picture needs a different amount of rotation and cropping. Personally, I would use GIMP.
 
Old 05-12-2009, 06:29 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by lucmove View Post
The Gimp does that, but after the image is rotated, black corners have to be trimmed out, probably with the Crop tool. That's easier said than done, I often miss the exact cropping spots and have to undo and try again, it's time consuming. The Gimp doesn't do that automatically.
The GIMP does almost everything automatically if you write a correct Script-Fu program. Also consider the autocrop function, which remove empty borders from the image (based on the color outside the edges of the picture).

Some doucmentation about script-fu here. Also look for Mike Terry's Black Belt School of Script-Fu! A must-read.
 
Old 05-12-2009, 07:34 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by colucix View Post
The GIMP does almost everything automatically if you write a correct Script-Fu program.
Except maybe getting the correct rotation........
 
Old 05-12-2009, 08:29 AM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Guys, please. The Gimp doesn't cut it. The Autocrop tool does not do what I want. The Gimp doesn't have that convenient Trim function that Fotoxx has -- in the very same dialog box as Rotate for a reason. It's meant just for that. Besides, The Gimp is quite slow when applying the rotation. Fotoxx rotates instantly.

But Fotoxx is way too heavy and unstable. What I need is some other application, if someone is aware of any such application...
 
Old 05-12-2009, 09:32 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
kim is an interesting kde servicemenu add-on for KDE (3.x.y) written and maintained by Charles Bouveyron.

You can R-click on an image file, and then select Actions-> Kim-> Do all sorts of interesting things (including rotation) to the image.

The service menus in kim are easy to understand, extend and modify to your requirements.

kim uses the imagemagick package ( particularly convert and mogrify ) to do the grunt-work of image manipulation.

You might take a look at it here: http://linux.softpedia.com/get/Multi...Kim-2263.shtml
I expect you can extend it to make it do what you want.
 
Old 05-12-2009, 02:22 PM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Kim is totally inadequate for my task. It uses imagemagick, i.e. command line, so it only handles fixed values. It's good for turning landscape images into portrait or vice-versa because that is predictably 90 degrees, but that's about it. There is a "Rotate Custom..." option in Kim's menu, but that will prompt for a number to determine the rotation in degrees. How am I supposed to know that? Each picture has to be rotated to a certain, varying degree, and anyone who can just look at an image and accurately determine how many degrees (with decimal precision) the image needs to be rotated should be working in a circus. What I need is an interactive tool, like the one in Fotoxx.
 
Old 05-12-2009, 02:49 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Kim is totally inadequate for my task.
I am sorry that you found it "inadequate". I thought it was useful, and an excellent example of how to use KDE's service menus to improve and customise KDE's functionality. I use kim frequently, and the concepts it taught me have served me well.

Maybe you should write your own application, I am sure we'd all like to try it. Or perhaps you should join the Fotoxx developers - you have the incentive to contribute something.

Or perhaps you just need to remember to consider the framing and angle of your camera before you press the "Take a photo" button ?

Otherwise, I am out of ideas. So, I wish you good luck in your quest, but please let us know (here) if and when you find the (nearly) perfect solution to your requirements
 
  


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
upload and rotate multiple pictures for webapp paranoid times Linux - Software 3 01-27-2009 03:28 PM
Rotate display -- Option "Rotate" "CCW" Brad.Scalio@noaa.gov Linux - General 0 01-27-2009 05:32 AM
trim my box ekdya Fedora 6 09-25-2006 01:50 PM
How To Trim A File fpfernando Programming 11 01-05-2006 08:04 AM
trim a line schneidz Programming 2 10-07-2005 06:47 PM

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

All times are GMT -5. The time now is 12:03 PM.

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