RSS/Atom feed Twitter
Site is read-only, email is disabled

How to convert a bunch of files from one format to the other

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

Phillip Bruce
2003-07-21 03:51:09 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Hi,

I have a bunch of bmp images that I want to convert to jpeg format. How can I do this without having to go thru each image at a time?

I'm running gimp on a unix platform.

Harish Narayanan
2003-07-21 05:45:18 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Hi,

You could use "convert" from the ImageMagick suite and a small bash script like:

#!/bin/bash
for image in *.bmp; do
target=`echo $image | sed s/.bmp/.jpg/` convert $image $target
done

Or something similar.

Harish

Phillip Bruce wrote:

Hi,

I have a bunch of bmp images that I want to convert to jpeg format. How can I do this without having to go thru each image at a time?

I'm running gimp on a unix platform.

Phillip Bruce
2003-07-21 08:19:05 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Harish Narayanan wrote:

Hi,

You could use "convert" from the ImageMagick suite and a small bash script like:

#!/bin/bash
for image in *.bmp; do
target=`echo $image | sed s/.bmp/.jpg/` convert $image $target
done

Or something similar.

Harish

Harish,

Thanks that exactly what I was missing. The convert command itself. Thanks.

Geoffrey
2003-07-21 13:34:26 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Phillip Bruce wrote:

Hi,

I have a bunch of bmp images that I want to convert to jpeg format. How can I do this without having to go thru each image at a time?

use imagemagick, convert:

# this is ksh

for fn in *.bmp;do convert $fn ${foo#*.bmp}.jpg
done

Michael Schumacher
2003-07-21 21:08:37 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

On 20 Jul 2003 at 23:45, Harish Narayanan wrote:

Hi,

You could use "convert" from the ImageMagick suite and a small bash script like:

#!/bin/bash
for image in *.bmp; do
target=`echo $image | sed s/.bmp/.jpg/` convert $image $target
done

mogrify -format jpg *.bmp

I'd recommend using GraphicsMagick instead of ImageMagick, too http://www.graphicsmagick.org

HTH, Michael

Geoffrey
2003-07-21 21:43:24 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Michael Schumacher wrote:

On 20 Jul 2003 at 23:45, Harish Narayanan wrote:

Hi,

You could use "convert" from the ImageMagick suite and a small bash script like:

#!/bin/bash
for image in *.bmp; do
target=`echo $image | sed s/.bmp/.jpg/` convert $image $target
done

mogrify -format jpg *.bmp

I'd recommend using GraphicsMagick instead of ImageMagick, too http://www.graphicsmagick.org

Why?

HTH,
Michael
_______________________________________________ Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Michael Schumacher
2003-07-21 22:38:51 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Michael Schumacher wrote:

I'd recommend using GraphicsMagick instead of ImageMagick, too http://www.graphicsmagick.org

Why?

GraphicsMagick is designed for stability. You may even call it the stable release of ImageMagick.
According to their mission goal, the developers aim for:

- fewer crashes - fewer bugs
- consistent behaviour
- stable APIs

HTH,
Michael

Geoffrey
2003-07-21 23:00:42 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

Michael Schumacher wrote:

Michael Schumacher wrote:

I'd recommend using GraphicsMagick instead of ImageMagick, too http://www.graphicsmagick.org

Why?

GraphicsMagick is designed for stability. You may even call it the stable release of ImageMagick.

I'm all for stability, but I've never had any problems with ImageMagick, although I've not done anything too terribly complex. Mostly conversion from one format to another, adding frames to a bunch of images, combining images, adjusting brightness/contrast of images.

Michael Schumacher
2003-07-21 23:16:11 UTC (almost 21 years ago)

How to convert a bunch of files from one format to the other

I'm all for stability, but I've never had any problems with ImageMagick, although I've not done anything too terribly complex. Mostly conversion

from one format to another, adding frames to a bunch of images,

combining images, adjusting brightness/contrast of images.

I've seen some of the problem myself, mainly corrupt images or options that behaved different in a previous release. I've heard of even more problems of the later kind, mainly in usenet posts.