Sub test()
F = "D:\Users\....\Pictures\Source\"
T = "D:\Users\....\Pictures\Cible\"
ImgNote F & "Brochet.jpg", T & "Brochet Com.jpg", "Brochet", 1
ImgNote F & "Brochet.jpg", T & "Brochet Com2.jpg", "Brochette", 2
End Sub
Sub ImgNote(Source As String, Cible As String, Note As String, TypOfNote)
Select Case True
Case Note = ""
Case Not CreateObject("Scripting.FileSystemObject").FileExists(Source)
Case TypOfNote = 1
Shell Replace("magick '" & Source & "'" & _
" -font Calibri" & _
" -pointsize 18" & _
" -background Khaki" & _
" -gravity Center" & _
" label:'" & Note & "'" & _
" -append '" & Cible & "'", _
"'", """")
Case TypOfNote = 2
Shell Replace("magick '" & Source & "'" & _
" -font Calibri" & _
" -pointsize 18" & _
" -gravity north" & _
" -annotate +0+0 '" & Note & "'" & _
" '" & Cible & "'", _
"'", """")
End Select
End Sub