You are not logged in.
hello there, I've got plenty of photos to resize. I'm trying to use imagemagick's mogrify for recursive batch resizing, but I've got many folder with spaces in their names, so that doesn't work.
The command I found on the internet is the following:
$ find somefolder/ -name "*.jpg" -exec mogrify -resize 1024x768 {} \;
Is there any way to escape spaces in file path?
thx
Last edited by brazzmonkey (2009-04-06 21:00:38)
what goes up must come down
Offline
What happens if you put the {} in quotes? --> "{}"
Offline
Mr Green
Offline
@peart: I thought about this one myself. Doesn't work.
@Mr Green: does this mean I'm supposed to have something like that:
$ find somefolder/ -name "*.jpg" -exec mogrify -resize 1024x768 {//\ /\\ } \;
*edit*
no, definetely no. I guess I misunderstand.
Last edited by brazzmonkey (2009-04-05 21:48:44)
what goes up must come down
Offline
$ find somefolder/ -name "*.jpg" -ls -exec mogrify -resize 1024x768 {} \;
doesn't work either.
Last edited by brazzmonkey (2009-04-06 21:00:09)
what goes up must come down
Offline
alright, I finally got over it using jhead:
jhead -cmd "mogrify -resize 1024x768 -quality 80 &i" -r *.jpg
what goes up must come down
Offline