Is there any action/filter hook to use when an image gets edited in the editor?

edit_attachment
Runs when an attached file is edited/updated to the database. Action function arguments: attachment ID

This is found deocumented in the Codex under the Action Reference. Please take a closer look at the Codex before posting questions related directly to syntax. 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)