Step 1 Open up your picture in Photoshop.
Step 2 Go to Filter >> Artistic >> Poster Edges and set your settings as mine:
Step 3 Click ok and you’re done.