I have determined from some testing that the PS high pass is equivalent to the image minus an IM -blur radiusxsigma with radius=0 and sigma=photoshop radius at 50% bias (in non-HDRI)
Here is a test image:
Here is the photoshop high pass result at radius=60
Here is my IM high pass processing command and result:
infile="birdofparadise.jpg"
blur=60
convert $infile \
\( -clone 0 -blur 0x60 \) \
\( -clone 0 -clone 1 +swap -compose mathematics \
-set option:compose:args "0,1,-1,0.5" -composite \) \
-delete 0,1 birdofparadise_im_hp${blur}.jpg
Here is the photoshop high pass result at radius=3
Here is my IM high pass processing command and result:
infile="birdofparadise.jpg"
blur=3
convert $infile \
\( -clone 0 -blur 0x60 \) \
\( -clone 0 -clone 1 +swap -compose mathematics \
-set option:compose:args "0,1,-1,0.5" -composite \) \
-delete 0,1 birdofparadise_im_hp${blur}.jpg
Here is doing all the processing requested.
infile="birdofparadise.jpg"
outfile="birdofparadise_processed.jpg"
convert $infile \
\( -clone 0 -blur 0x60 \) \
\( -clone 0 -clone 1 +swap -compose mathematics \
-set option:compose:args "0,1,-1,0.5" -composite \
-matte -channel A -evaluate set 40% +channel \) \
\( -clone 0 -blur 0x3 \) \
\( -clone 0 -clone 3 +swap -compose mathematics \
-set option:compose:args "0,1,-1,0.5" -composite \
-matte -channel A -evaluate set 50% +channel \) \
\( -clone 0 -clone 2 -compose hardlight -composite \
-clone 4 -compose overlay -composite \) \
-delete 0-4 $outfile
A before and after example from the requestor would be nice to see and test the kind of imagery that is important to him.