$$MondiR$$ Bonjour a tous, Voila j'ai un ptit problème pour convertir un image de .raw à .png. J'ai en faite un ptit script shell, le voila : #!/bin/bash chmod 777 * for i in *.raw ; do echo "Convert '$i' to PNG format..." tmp=`basename $i .raw` hexdump -v $i |awk 'BEGIN {pattern = 0;cpt=0;} {for (i=2; i<10; i++) { \ val=sprintf("0x%s",$i); tmp = strtonum(val); \ r= rshift(tmp , 11)*8 ; \ g= and (rshift(tmp , 5) , 127)*4 ; \ b= and (tmp, 63) *8; printf "%c%c%c",r,g,b;\ } \ }' > $tmp.raw24 head -c 1152000 $tmp.raw24 > $tmp.tmp convert -size 800x480 -depth 8 rgb:$tmp.tmp $tmp.png rm -rf $tmp.tmp rm -rf $tmp.raw24 done chmod 777 * rm -rf *.raw Mais le problème c'est qu'il m'affiche tjr un message d'erreur dans la ligne 5 et 6. Je pense que j'ai des paquets manquants mais je sais pas les quelles!!!!!!!! Si vous avez d'autres propositions pour convertir un fichier *.raw à *.png c serai vrmt sympa Merci d'avance pour l'intérêt.