Multiple Images processing with pfstools

60 views
Skip to first unread message

Dap Pan

unread,
Apr 18, 2016, 4:39:17 PM4/18/16
to pfstools
Hi!
I'm new in pfstools and I need some help.
What I want to do is to tonemap multilpe HDR images at the same time and then save them in jpg format, 
instead of doing all that process for each image every time.
What I used to do until now (one image at a time) : pfsin img.hdr | pfstmo_drago03 | pfsgamma -g | pfsout img.jpg
It's time consuming to do this for several images.
Is there a way to do what I need?

Thanks for your help,
Daphne

Rafal

unread,
Apr 18, 2016, 5:29:17 PM4/18/16
to pfstools
Hi,
Try:

for img in *.hdr; do pfsin $img | pfstmo_mantiuk08 | pfsout tm_${img%%.hdr}.jpg; done

from bash.

Cheers,

Rafal

Dap Pan

unread,
Apr 20, 2016, 3:43:18 PM4/20/16
to pfstools
Thanks a lot!
Reply all
Reply to author
Forward
0 new messages