Image replace in flow - with pattern


I tried to do something like this :

Mitmdump -T --host --replace-from-file ':~s:http\.jpg:/home/remnux/Desktop/a

To change all the jpg pictures with url/path I gave it in the file but its not working ?
what is my problem ?
Is there a simpler way to do this task ?

Thx guys,


I know it’s a noob question but can somebody help pls?


Hey Daniel? did you managed to do so? if yes,tell me please