No it is not any offence as when you uploaded the pic you are in the relationship and the consent was given by you ex, If you discover that someone posted either photos or videos of you on a social media site without your permission, the first thing to know is that it is illegal. But, The law makes it clear you are free to take pictures for private use of other people in public areas under the Constitution of India Article 19, however publishing a photo in a manner that might be “embarrassing, mentally traumatic” or causing “a sense of inSectionurity about the activities the person in the photograph is involved in” is illegal under Article 21.
Section 67 of Information Technology Act ,According to this Section, anyone who uses electronic means to publish any picture, video or audio or anything which is capable of defaming a person morally will be considered as a crime and the person doing such an act will be punished with imprisonment.
now if you already uploaded any pictures of your EX, make sure that the same picture will not fall under the purview of above Section. do not upload any sensitive pictures,use your senses or youÕll get in trouble.