A Philadelphia attorney who was convicted of secretly taking nude photographs of his then-wife and posting them online agreed to a three-year suspension from practicing law, according to a Pennsylvania Supreme Court order filed Thursday.