Rounding error when using composite soft_light for fake hdr
Posted: 2010-10-06T09:39:50-07:00
Hi
I have pieced a string of commands together to make kind of a fake hdr look. It looks like this (from Bash):
workfile=IMG_5368.JPG
convert -negate -colorspace gray -resize 10% -resize 1000% "$workfile" - | composite -dissolve 85% - "$workfile" - | composite -compose Soft_Light - "$workfile" IMG_5368_processed.JPG
Btw. the files involved are:
Original: http://simonmikkelsen.dk/files/im/IMG_5368.JPG
Tmp (see later): http://simonmikkelsen.dk/files/im/IMG_5368_tmp.JPG
Result: http://simonmikkelsen.dk/files/im/IMG_5 ... cessed.JPG
However, when I do the final Soft_Light it seems there are some rounding errors. On the result file, look at the shadows at the ceiling inside of the garage. Instead of being gray tones, they are dark red and dark yellow/green. The first I think off is rounding errors, but maby I'm doing something wrong? If I do the soft light composite in The Gimp, there are no problems - I get nice smooth gray tones.
The tmp-file is made via
convert -negate -colorspace gray -resize 10% -resize 1000% "$workfile" - | composite -dissolve 85% - "$workfile" IMG_5368_tmp.JPG
so the result file can also be made via:
composite -compose Soft_Light IMG_5368_tmp.JPG IMG_5368.JPG IMG_5368_processed.JPG
I'm using version 6.3.7 06/04/09 Q16
Best regards,
Simon Mikkelsen, Denmark
I have pieced a string of commands together to make kind of a fake hdr look. It looks like this (from Bash):
workfile=IMG_5368.JPG
convert -negate -colorspace gray -resize 10% -resize 1000% "$workfile" - | composite -dissolve 85% - "$workfile" - | composite -compose Soft_Light - "$workfile" IMG_5368_processed.JPG
Btw. the files involved are:
Original: http://simonmikkelsen.dk/files/im/IMG_5368.JPG
Tmp (see later): http://simonmikkelsen.dk/files/im/IMG_5368_tmp.JPG
Result: http://simonmikkelsen.dk/files/im/IMG_5 ... cessed.JPG
However, when I do the final Soft_Light it seems there are some rounding errors. On the result file, look at the shadows at the ceiling inside of the garage. Instead of being gray tones, they are dark red and dark yellow/green. The first I think off is rounding errors, but maby I'm doing something wrong? If I do the soft light composite in The Gimp, there are no problems - I get nice smooth gray tones.
The tmp-file is made via
convert -negate -colorspace gray -resize 10% -resize 1000% "$workfile" - | composite -dissolve 85% - "$workfile" IMG_5368_tmp.JPG
so the result file can also be made via:
composite -compose Soft_Light IMG_5368_tmp.JPG IMG_5368.JPG IMG_5368_processed.JPG
I'm using version 6.3.7 06/04/09 Q16
Best regards,
Simon Mikkelsen, Denmark