Solved

Editing series of pictures in Linux

Posted on 2011-09-23
5
336 Views
Last Modified: 2012-05-12
I have converted a video clip into a series of pictures in .PNG-format using ffmpeg. (As far as I know the PNG-format is a lossless format?).

Now I want do some changes in each of these pictures in a smooth and efficient way. An example would be to remove a black frame which is situated on the same position in each picture. This could be done manually, but if the series consists of 100 or more pictures this would be a very boring and time-consuming job..

Basically I'm looking for an editor-program with scripting capabilities (or similar) so that I can script the remove operation and then apply it to one or more of the pictures in a batch job.

If the program was able to expand the picture to its original size after the remove-job was done it would be excellent.

Does anyone know or have any experience with Linux-programs which could do this types of tasks ?
Currently I'm running Ubuntu Linux 10.04 64-bit.
0
Comment
Question by:toyboy61
  • 3
5 Comments
 
LVL 31

Expert Comment

by:Frosty555
Comment Utility
Gimp supports scripting, so if you can script your edit operations you can apply it to each image in the list:

http://www.squidoo.com/gimp-how-to-write-a-script-fu-macro
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
Expanding an image more than just a little bit often causes the quality to suffer.  You should test the procedure manually first.  I use GIMP on Ubuntu 8.04.
0
 

Author Comment

by:toyboy61
Comment Utility
Frosty555: I was thinking about GIMP, but wanted to know is there was any other solutions..

DaveBaldwin: My first attempt would be to remove a frame from a credits screen with black background and white letters so I think the quality would be good.. :-)   The video is recorded from a TV show, and I want to remove the TV station's own "commercials" about its own programs succeeding this TV show. They often present it with a frame formed as an "L" covering the left and bottom of the screen. The "main" picture is then narrowed to fit on the screen. I want to "restore" it to its original size.. :-))

I'll give it a try.. :-)



0
 

Accepted Solution

by:
toyboy61 earned 0 total points
Comment Utility
This link gave me the information I needed in this case.
http://www.linuxtutorialblog.com/post/cropping-multiple-images-the-same-way-short-tutorial.

1. First using GIMP to get the coordinates of the part of the image I want to use.
2. Using mogrify (from the package imagemagick (link: http://www.imagemagick.org/ or get it directly from the repository) to do the cropping of all the files.
3. Using ffmpeg to make a video of the cropped files.  :-).
4. To get the best result when my original images is of PAL-format (720 x 576 pixels) it's best to make the cropped area with the same ratio between the height and the width (which is 720/576 = 1,25).
Then I can instruct ffmpeg to make the images 720x576 with the -s argument..

The question then is: Who should get credits for this solution ??  :-)


0
 

Author Closing Comment

by:toyboy61
Comment Utility
I found the solution myself.. :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
PaperPort (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) is among the most important applications that I run on my Windows computers. I use it every day, for nearly all of my document and photo scanning, as well as most of my…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The goal of the tutorial is to teach the user how to make his/her own presets while editing so it is easier to edit there photos. Create a preset you like and copy that setting then save it in to your presets folder.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now