How can I make Photoshop automatically save the image as PNG in the background whenever I make any changes in Photoshop (brush strokes etc.)?
What you're looking for is a
Generate Image Assets feature: it uses a node-powered
Generator inside Photoshop to quickly export images after each change. Simply put your layers to a group with a name like
my_image.png, enable the plugin from
File > Generate > Image Assets menu and you'll have your png in a subfolder of the location of your saved
More info on Adobe website.
Here's a video where you can see a file change on the fly during changes: https://youtu.be/AbgT7unfSaU?t=335