So, when showing fullscreen pictures of 3d scenes or whatever, when then using the shake screen effect, it will shake the picture just fine BUT at the sides when it moves away from the actual screen edge, it will show the rpg maker map in the background.
Is there a way to just have that be black instead of showing the underlying game map, without transferring the player to a black map during the event (which causes trouble with having them be transferred back there exactly where they started the event)?
Can you make the picture larger than your game window, with black borders?
Well, can you describe what's the problem with transferring the player back and forth?
One of those two will be easier to implement than the other.
I suppose you could try one of the layers plugins to create a large, entirely black layer that goes between the map and the image, but I am not familiar with how those work. You'd have to try it out yourself.
from a programmer's point of view, oversized pictures is the simplest solution - which is the reason why the battlebacks are oversized by default as well, so that the screen shake is covered on the battlescreen.
Unfortunately that mostly assumes that you're using oversized pictures from the beginning, having to go back to change that is much more work if you need to go into each event to change display coordinates.
There is one extremely tricky option that might help - but can also destroy your game if you make a single mistake. So only try this with a backup.
All events with all commands and all settings are stored in JSON files that can be opened in any text editor. You could check what letter sequence stores the show picture and then make a replace on that.
You CANNOT use "replace all" unless you have no other use of show picture, you'll have to find and check each show picture command to prevent messing with the wrong commands.
But it is faster than opening every map and every event in the editor itself, especially if you use a multifile text editor like textpad.