Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Editing series of pictures in Linux

Posted on 2011-09-23
5
Medium Priority
?
357 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 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article provides the solution to a question (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28674207.html) posed here at Experts Exchange. The asker of the question has many JPG images in many folders, and all of t…
In a previously published article (http://www.experts-exchange.com/articles/10331/Automatic-Duplex-Scanning-in-PaperPort-Versions-11-12-14.html) here at Experts Exchange, I explained how to achieve duplex (double-sided) scanning in Nuance's PaperPor…
The goal of the tutorial is to teach the user how to edit a basic portrait of someone. This tutorial shows how to edit two basic photographs, one of a car and one of a person.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Suggested Courses

722 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