I'm looking for somebody who will help me to do the reverse engineering for the filters applied to the following images:










Thanks.
Yes crop/resize are main effects, but more interesting for me are the colors, contrast, levels correction and some blur / smoothing / unsharpening. All of these images were processed by same script (that I believe based on histogram analysis and correction).snibgo wrote:The main effects are crop and resize, obviously.
Other effects are more subtle, and are masked by jpeg compression. There may be unsharpening. The building may have tonal expansion. The clapping woman has colour shift, or perhaps just increased saturation. The final image has some smoothing.
Code: Select all
convert 1_orig.jpg -contrast-stretch 0.1% -resize 240x180 -unsharp 0x1 1_proc.jpg
fmw42 wrote:Do you have access to the source code for the script? What platform and what version of IM are you using?
What platform? Linux/Mac/Windows? If on windows, you may need to use %% rather than %Version: ImageMagick 6.7.0-10 2011-07-31 Q16
Linuxfmw42 wrote:What platform? Linux/Mac/Windows? If on windows, you may need to use %% rather than %Version: ImageMagick 6.7.0-10 2011-07-31 Q16
Test my command and see if that is close?
Code: Select all
convert 1_orig.jpg -auto-level -auto-gamma -contrast-stretch 0.1% -resize 240x180 -unsharp 0x1 1_proc3.jpg
Code: Select all
convert 1_orig.jpg -equalize -auto-level -auto-gamma -resize 240x180 -unsharp 0x1 1_proc4.jpg
Code: Select all
convert 1_orig.jpg -auto-level -auto-gamma -resize 240x180 -unsharp 0x1 1_proc5.jpg
Thank you for your answers.fmw42 wrote:try this and adjust the contrast-stretch a bit more when needed
Code: Select all
convert 7_orig.jpg -contrast-stretch 0.1% -resize 240x180 -unsharp 0x1 7_proc.jpg
Code: Select all
convert 7_orig.jpg -auto-level -auto-gamma -contrast-stretch 0.1% -resize 240x180 -unsharp 0x1 7_proc3.jpg
Code: Select all
convert 7_orig.jpg -equalize -auto-level -auto-gamma -resize 240x180 -unsharp 0x1 7_proc4.jpg
Code: Select all
convert 7_orig.jpg -auto-level -auto-gamma -resize 240x180 -unsharp 0x1 7_proc5.jpg
Code: Select all
convert ^
%1_orig.jpg ^
( +clone -blur 0x2 ) ^
-compose Difference -composite ^
-grayscale RMS ^
-auto-level ^
-auto-gamma ^
-blur 0x20 ^
-contrast-stretch 25x25%% ^
-negate ^
mask.png
convert ^
%1_orig.jpg ^
( +clone -blur 0x2 ) ^
mask.png ^
-composite ^
%1_masked.png
I get the following error on Windowssnibgo wrote:For the smoothing, I think this is close, for all the images. Windows script. The two commands could be combined into one. If further experiments show that the two blur amounts 0x2 are correct, it would need doing only once.