Door hinge stripped, do I try longer screws

Should I try longer wood screws or do I need to get the door reframed?

Should I try longer wood screws or do I need to get the door reframed?