Judge Couch said what Burborough had done had been "highly distressing to the victim".
He said the distress was "aggravated by the name [of the victim] you attached to the photo".
Three days later police searched Burborough's house and found 400g of high-grade cannabis, separated into nine "deal bags", and scales for weighing the drug.
Judge Couch said the defendant admitted that he had bought the drug to sell.
The judge said that posting the photo online had been a "gross breach of trust", as it had been taken "in the course of an intimate relationship".
The judge said given the fact that the defendant had "expressly told her the photo was online", it was clear it was posted "with the express purpose of humiliating her and causing her distress".
Judge Couch began with a sentence of 22 months for the two offences, adding two months because of the pre-meditation around the drug offending.
However a five-month discount was given for Burborough's guilty pleas, and two one-month reductions for his remorse and lack of previous criminal history.
Arriving at a final possible jail sentence of 15 months, the judge imposed an eight-month term of home detention on the basis that it was an "appropriate remedy" for the offending.