Solved

Editing series of pictures in Linux

Posted on 2011-09-23
5
340 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 83

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Online photography 7 123
Display desktop shortcuts without their graphic icons 7 96
graphic software 6 91
Neat Receipts NM-1000 Portable Scanner 11 226
As each individual will have his or her personal way of processing a concept and turning it into a reality, this is simply a record of my own system as a designer. It may feel daunting or even overwhelming when developing a new idea for a project…
Use email signature images to promote corporate certifications and industry awards.
The goal of the tutorial is to teach the user how to remove a natural vignette your photos and how to add vignette to your photos.
How to make a clipping mask out of several separate vector objects by using the Compound Path option in Adobe Illustrator.

820 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