I have to work with an image with PHP GD. The problem is when I copy the original picture, the colors are not the same.
original Picture :
People told me to convert my jpg into sRGB profil instead AdobeRPG.
So I did it:
$image = new Imagick($chemin_image);
// On enleve tout les profils qu'il y avait à la base
$image->profileImage('*' , false);
// Essayer de mettre en SRGB si ce n'est pas le cas
$icc_srgb = file_get_contents('../../admin-cache/profil_icc/sRGB_IEC61966-2-1_black_scaled.icc');
$image->profileImage('icc' , $icc_srgb);
$image->transformImageColorspace(13);
$image->writeImage($chemin_image);
I know that not the same size and the same quality, is normal.
That work, the color are the same, but now is not the same contraste :
I went to Facebook, to see, how he does in his own upload system, I tried with my picture and it's work very well, but i have no idea how they have done.