You are not logged in.

#1 2008-12-25 20:44:33

Mr. Steve
Member
Registered: 2008-12-19
Posts: 16

Need another script, this time for feh

I need a script that will resize all pictures in a folder. Thanks for your help!

Offline

#2 2008-12-25 20:58:56

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Need another script, this time for feh

Install imagemagick and run e.g.

for i in /folder/*; do convert -resize 50% -quality 80 $i $i; done

For more details: man convert.

Last edited by Ramses de Norre (2008-12-25 20:59:22)

Offline

#3 2008-12-25 21:19:21

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Need another script, this time for feh

Why not use mogrify (also in imagemagick) and skip the script?

mogrify -resize 50% -quality 80 /path/to/dir/*

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2008-12-25 21:48:20

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Need another script, this time for feh

I'd also use -filter Lanczos

Offline

#5 2008-12-26 12:28:03

Mr. Steve
Member
Registered: 2008-12-19
Posts: 16

Re: Need another script, this time for feh

Thanks guys, top one worked well!

Offline

Board footer

Powered by FluxBB