Wanted to add my $0.02 to this. I think the best way to handle the collision is via a separate image with a naming convention or a file created with that physics object editor program linked above. My reasoning is that pixel collision opens the door for people to make non-tile based maps with diagonal surfaces that would require non-rectangular collision maps.
There are a couple different ways to approach this - you could use an alternate version of the tileset used to create the map to pull the collision info from, but this is limiting. I believe the better way would be as shown above, to use a collision map (one image for the entire map). This would make isometric games and "parallax" style map design much faster to implement.
Another essential feature would be a function you could call via an event to change collision maps, so you could use multiple collision images for maps that have more than 1 level to them (eg walking on a balcony, etc).
Throwing my 2c in.
A mask layer makes the most sense. Easy to understand, widely usable and unlikely to conflict. Do what you know works first and try something more ambitious later. I would love to use it myself.
I didn't really like the mask layer idea, but it seems the majority does.
Someone else is currently implementing this in a way that it is compatible with my movement plugin, so I didn't bother to make anything myself.
You can't see the code exactly but I imagine you would like to make something similar.