LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2005, 10:27 AM   #1
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265

Rep: Reputation: 32
Batch image manipulation


In the Windows world I used ThumbsPlus (www.cerious.com) for batch processing photos.

What utility in Linux would handle batch resizing large collections of digital photos where no user intervention is required? Like resizing 1600x1200 down to 800x600 or any other size of your choosing?

Also, how would you rename a large number of files like dsc_0001.jpg - dsc_0548.jpg to newfile001.jpg - newfile548.jpg in a batch?
 
Old 05-22-2005, 10:30 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: Batch image manipulation

Quote:
Originally posted by elfoozo
In the Windows world I used ThumbsPlus (www.cerious.com) for batch processing photos.

What utility in Linux would handle batch resizing large collections of digital photos where no user intervention is required? Like resizing 1600x1200 down to 800x600 or any other size of your choosing?

Also, how would you rename a large number of files like dsc_0001.jpg - dsc_0548.jpg to newfile001.jpg - newfile548.jpg in a batch?
The main utility for batch image processing is ImageMagick, which provides a number of command-line utilities for image processing. You probably want to look at the
Code:
convert
utility for image resizing.

Renaming files like this is fairly simple to do using a BASH script. For information on bash, type:
Code:
man bash
I don't know how to do this kind of manipulation myself, but I'd be very surprised if this question hasn't already been answered on the forum.
 
Old 05-22-2005, 02:29 PM   #3
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265

Original Poster
Rep: Reputation: 32
thanks! ImageMagick does suit this task.

I found an example of a bash script that would work for my needs on:
http://www.tlc-networks.polito.it/gi...shin2page.html

From those examples, I slapped a bash script in my homedir
and execute it: user@localhost:$ ~/pics.sh
after I cd /to/folder/containing/files/

The actual script I used was:
Code:
#!/bin/bash

  for i in *; do
  convert $i -thumbnail 800x600 resized_$i;

done
Works like I hoped for. Thanks much!
 
Old 05-22-2005, 06:38 PM   #4
mrbass
LQ Newbie
 
Registered: Jul 2004
Posts: 25

Rep: Reputation: 15
Here's a bash script for image resizing at near the very bottom of this page. http://mrbass.org/linux
Currently I just use irfanview 3.97 in wine for doing this stuff.
 
Old 05-24-2005, 11:33 AM   #5
crouse
LQ Newbie
 
Registered: May 2005
Location: USA
Posts: 19

Rep: Reputation: 0
I have a bash script that does multiple things to images, in batch quanities.

http://www.bbips.org
Bash Batch Image Processing Script

This script batch process's images in a directory. It can do Many things now.
A few of them include:

2) Rotate Images
3) Create Thumbnails
4) Custom Resize Images
5) Resize Images to 400x400 max
6) Put Text on Images
7) Add Border to Images
8) Convert Images to Black and White


http://www.bashscripts.org/downloads.../crouse/bbips/
 
Old 06-03-2005, 06:22 PM   #6
smiler
Member
 
Registered: Sep 2002
Distribution: Mandrake 10.0 O
Posts: 48

Rep: Reputation: 15
Look here for graphical work-mode

Take a look at this one - cool
http://www.mepis.org/node/6454

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[C/C++] Image manipulation Cornholio Programming 2 03-06-2005 11:46 AM
Looking for a Batch Image Resizer Fonk Linux - Software 1 10-13-2004 02:58 PM
Batch image conversion mrsolo Linux - Software 1 09-06-2004 04:47 PM
image manipulation/analysis library : recommandation ? bahramH Linux - Software 0 05-26-2004 09:47 AM
batch image resizer jdaniel Linux - General 2 07-14-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration