Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-07-2006, 08:23 AM   #1
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
batch resize in digikam

I'm trying to use batch resize on all the photos in an album to send to family members. Resizing individual photos with digikam is no problem.

When trying to use the batch resize everything came out black. Changing the background color to white resulted in a bunch of white boxes. No background doesn't seem to be an option.Batch resize goes through the motions but produces no useable output. The resize window offers a bunch of filter options, but they might as well be written in greek for all I understand of it.

Any idea what I may be doing wrong? Is this part of digikam just buggy?
Old 06-07-2006, 02:14 PM   #2
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
You could do it from the command line, using ImageMagick's convert command. You might have to build a little script around it to resize all files in a batch operation.

The script below works, but is pretty stupid.

# calls the "convert" program from "ImageMagick" suite and
# resizes all pictures in a given directory which comply
# to the file mask given.


if [ -z "$1" ]
  echo -e "Usage: resize_image <width>x<height>{+-}<x>{+-}<y>{%}{@}{!}{<}{>} quality file1 file2...\n"
  echo "The size and quality specification are equal to the -geometry specification"
  echo "in the \"convert\" command in the ImageMagick suite."
  echo "No spaces are allowed in the geometry specification."
  exit 1

echo "1: $new_geo"
echo "2: $new_quality"
shift 2


for file in $*
echo $file
if [ -f $file ]
  let "number += 1"
  echo "processing file $number: $file"
  $DEBUG convert -geometry $new_geo -quality $new_quality $file $r_file

echo "processed $number files"
Old 06-07-2006, 10:20 PM   #3
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Original Poster
Rep: Reputation: 30
Originally Posted by jlinkels
The script below works, but is pretty stupid.
No need to apologize for that script, it works a treat.
Thanks jlinkels.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Digikam help please marcia Linux - Software 1 03-08-2006 08:27 AM
How to get digikam to work? JockVSJock Slackware 15 02-14-2006 08:32 PM
Digikam won't download raysr Mandriva 3 08-07-2005 02:11 PM
Digikam in 9.3 LinuxPimp SUSE / openSUSE 1 05-14-2005 09:54 PM
batch image resize and compression Darkfalz Linux - Software 3 08-01-2004 02:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 AM.

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