LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-06-2007, 10:44 AM   #1
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Rep: Reputation: 16
Bulk resizing of images?


I want an image program to do bulk operations - mainly resizing, but also and basic manipulation (rotation, sharpening, changing brightness & contrast.).

When I was using Windows I found Easy Thumbnails from fookes.com to be very good (and it also seemed to give a much smaller filesize than some other programs, for an image of a comparable size and image quality). I'm currently running Easy Thumbnails on a USB stick on a windows machine - but it's not an ideal solution.

It would be great if I could do all this from within an album/viewing program - or even better, within the file manager. I know there are scripts that can be added to the right mouse button menu in a file manager, but I had trouble with the instructions; also, I would like to be able to modify the settings easily.

Thanks for any suggestions,
Chris
--
Semi-newbie
Running Xubuntu 7.04 on a Lenovo Thinkpad R60.

Last edited by Chriswaterguy; 10-06-2007 at 10:45 AM. Reason: typo
 
Old 10-06-2007, 11:01 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If you don't mind using the terminal, you can use mogrify, which comes in the ImageMagick suite of tools. Mogrify can do rotation too.

The KDE program Gwenview has a batch processing option, which can do these things. Go to the Plugins menu -> batch processing -> resize.

If you use Gnome with Nautilus, there is an extension to do mass-resizing of images.

There are doubtless others.
 
Old 10-06-2007, 01:59 PM   #3
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
I also recommend Image Magick - this would really just be a simple shell loop and the image magick mogrify call, really easy going.
 
Old 10-07-2007, 10:30 AM   #4
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Original Poster
Rep: Reputation: 16
Thanks for the suggestions!

ImageMagick: I'd rather use something with a GUI - partly as I'm a bit of a newbie (not convinced by the "really easy going"!) and partly because having a preview is so useful when doing even basic file manipulation.

Gwenview: I'm actually using Xubuntu, not Kubuntu, so that's a 19 MB download - not easy here in North Sumatra.

Nautilus: that's only a 4.5 MB download (tough 33 MB extra space). I will give this a try. I'd like to try an alternative to Thunar anyway, and I like the idea of having the image tools in the file manager. Just looking at the extensions now... nautilus-image-converter is available in Synaptic Package Manager, and explained at http://www.linux.com/feature/119029 - looks promising!
 
Old 10-07-2007, 10:50 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Hello to you in Sumatra from me in England - I love how Linux brings people together from across the planet
 
Old 10-07-2007, 11:43 AM   #6
christianunix
Member
 
Registered: Oct 2007
Posts: 40

Rep: Reputation: 15
I have always loved XnView.
 
Old 10-07-2007, 12:59 PM   #7
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Quote:
Originally Posted by Chriswaterguy View Post
Thanks for the suggestions!

ImageMagick: I'd rather use something with a GUI - partly as I'm a bit of a newbie (not convinced by the "really easy going"!) and partly because having a preview is so useful when doing even basic file manipulation.
Trust me, it really is and you'll going to appreciate it for bulk image editing. It's a Linux image editing must-have and is is simple exactly because it doesn't have a GUI.

Give it a try, it's anyhow part of all major distributions and works as a backend for several other image manipulation applications.
 
Old 10-07-2007, 02:31 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Using ImageMagick ... quite easy.

The way you use it is you cd into the directory with the files
you want resized, and invoke the script (I called it resize_pix
on my installation). It takes an optional parameter for the size.

You can see two size variables, one commented out. By default
(at the moment) it will down-scale all pix to 33% of their original
size, no matter what their initial size is. It will create a
subdir small if it doesn't exist yet, and put the files there.

At the moment it will only consider files with a lower case
jpg extension, but that's easily changed.

Code:
#!/bin/bash
# size="1024x768"
size="33%"
if [ "$1" != "" ]; then 
    size="$1"
fi
if [ ! -a small ]; then
  mkdir ./small
fi
for pic in `ls -1 *.jpg`
do
#echo "$pic"
  convert -resize $size "$pic"  "small/$pic"
done


Cheers,
Tink
 
  


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
resizing series of images (convert) wawosz Linux - General 4 04-16-2008 09:07 PM
Graphics program for resizing images needed? M$ISBS Linux - Software 4 11-28-2005 02:52 AM
Resizing Images in the GIMP batgranny Linux - Software 1 02-15-2005 10:38 AM
Resizing images quickly? BaltikaTroika Linux - Software 12 10-23-2004 05:41 PM
bulk mail lynger Linux - Software 2 05-21-2004 12:14 AM

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

All times are GMT -5. The time now is 02:26 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