Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Editing series of pictures in Linux

Posted on 2011-09-23
5
Medium Priority
?
365 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
ID: 36590094
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 84

Expert Comment

by:Dave Baldwin
ID: 36590139
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
ID: 36590443
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
ID: 37037121
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
ID: 37074930
I found the solution myself.. :-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Use email signature images to promote corporate certifications and industry awards.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

916 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