@nicholas.vanbeylen
This could potentially be done via image magik, I have done something similar.
Kind Regards
Louie