Given picture looks like external hemorrhoids.
Providing more details would be helpful however, it is advised to consume high fibre diet, adequate hydration, stool softners, and applying local analgesic gel containing 2% lignocaine inside the anal canal which helps in reducing the pain 15 mins before passing stools and Sitz bath 20 mins twice daily.
Next Steps
Consult a General Surgeon for proper evaluation of the situation
Health Tips
Avoid spicy food, tea/coffee and reduce consumption of non vegetarian food.
Avoid straining while passing stools.