Yes I saw the images of the protests in France against the new law.
From the article you linked:
"Under the plans, anyone convicted of circulating a police officer's image with the intention of seeing them harmed could be jailed for a year and fined 45,000 euros..."
That bit sounds reasonable to me. Vigilante justice is never good.
But surely, the act of filming the police will not then, in itself, be a crime.
In fact, should a police officer be doxxed at home or threatened with violence, it may very well be that the person who filmed that officer and then posted it online doesn't have any intention other than highlighting something for public attention. But that it is others (possibly very many others) who may then circulate the footage with intention of harm.
I don't know enough details but it sounds messy or somewhat ill-conceived.