Shortcode content filter?

you can use regex to find your the src and use that to append your “files/myimagescript?” to it:

function append_myimagescript($attr, $content){ 
    $pattern = '/src="https://wordpress.stackexchange.com/questions/11618/([^"]*)"/i';
    $replacement="files/myimagescript?${1}";
    return preg_replace($pattern, $replacement, $content);
}

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