$ means a single sheet so only one set of images instead of multiple sets per sheet. Just tells the editor how to break up the image.
Added some clarification:
An example of this is on a normal sheet of actor sprites you would usually have 8 actors on a single image. The engine would break up the sheet as such so you could select any actor from the sheet. But lets say you make a new sprite and its 3 cycle animation is alone on the sheet. You don't want the editor to break it up as a full 8 actor sheet cause the selection box wont align properly in the editor. So you would add an $ to the sheet to tell the engine that this is only a single 'actor' so it properly divides it.
And ! is for objects like doors or event graphics you want to use locked to the actual gird because by default the engine moves the player and sprites up 4 (Ace and lower) or 6 (MV and up) pixels so they 'look' off the grid more and is usually an esthetic choice.
Added Note:
Because the way the engine checks for these flags on images, if you had a single sheet door like the Gate1 image, you should follow the format of !$ImageName and not $! if you do the ladder of the 2 it wont check the flag correctly for the ! symbol and it would look like it never worked at all.
Added Additional Note:
There is also a check regarding ! to tell the engine about brush depth (Grass Tiles) meaning if you add this flag to a sprite and walk around in the grass the brush depth will not update and make the sprite partially transparent.
I think '6 pixels’ in MV and MZ.
Thanks for the explanation and clarification 🙂