Code: Select all
convert r1.png r2.png -compose difference -composite s1.png
If I include -metric to the convert command, it doesn't show the numerical indication of how different are the images.
Code: Select all
convert r1.png r2.png -compose difference -composite s1.png
Code: Select all
compare -fuzz 5% -metric AE r1.png r2.png s1.png
When an image is saved as JPG, information is lost. Converting it to another format won't get the information back.vpmammana wrote:I am still facing issues related to the "lossy" characteristic of "jpg" images.
Code: Select all
convert r1.png r2.png r3.png -verbose -evaluate-sequence Mean average.png
Code: Select all
/home/dir/r1.png=>/home/dir/average.png PNG 320x240 320x240+0+0 8-bit sRGB 115KB 0.000u 0:00.000
Code: Select all
$compara=shell_exec("compare -fuzz 5% -metric AE /home/".$key."/".$dir[$key]."/".$average." ".$imagem_atual." s_".$key."_".date("Y_m_d-H_i_s").".png");
Code: Select all
compare -fuzz 5% -metric AE image1.png image2.png null: 2>&1
Code: Select all
<?php
exec("/path2/compare -fuzz 5% -metric AE image1.png image2.png null: 2>&1",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>