Solved

Editing series of pictures in Linux

Posted on 2011-09-23
5
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
In a previous article here at Experts Exchange (http://www.experts-exchange.com/articles/18414/Create-a-PDF-file-with-Contact-Sheets-montage-of-thumbnails-for-all-JPG-files-in-a-folder-and-each-of-its-subfolders-using-an-automated-batch-method.html)…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

752 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