Image copyright AFP/Getty Image caption JK Rowling has based the new series on some of the lessons taught at Hogwarts

JK Rowling is to release four new Harry Potter eBooks next month, offering fans the chance to "delve deeper into the rich history of magic".

Rowling's Pottermore website will publish the stories, which will be devoted to all things from the "wizarding world".

Each will be themed around lessons studied at Hogwarts School of Witchcraft and Wizardry.

The shorts are inspired by a British Library exhibition about Harry Potter.

Image copyright Getty Images Image caption Rupert Grint, Daniel Radliffe and Emma Watson starred in the Harry Potter films

The series will have the name Harry Potter: A Journey Through…, adapted from the audiobook Harry Potter: A History of Magic and inspired by the name of the 2017 library display.

"Prepare to delve deeper into the rich history of magic (be it our own Muggle history, or the magical world created by JK Rowling) with this new series of eBook shorts," said a statement on the Pottermore site.

"In addition to exploring the origins of magic through history and folklore, the eBook shorts will also feature notes, manuscript pages and charming sketches as previously seen in Harry Potter: A History of Magic."

The first two books, released on 27 June, will explore Defence Against the Dark Arts as well as Potions and Herbology.

The third and fourth books, which will be released soon after, will look at Divination and Astronomy along with Care of Magical Creatures.

All four have been illustrated by London-based artist Rohan Daniel Eason and will initially be available in English, French, Italian, and German.

Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.