The same thing happens in Sweden where an artist named Dan Park has been sentenced to 3 months in prison [1, Swedish] for breaking the 'hets mot folkgrupp' (incitement against a specific group) law. This is not the first time he was sentenced to prison for his work, in 2014 he got 6 months for another piece. The mentioned law is controversial in that it criminalises speech or other forms of expression which is subjectively deemed to be offensive against groups without specifying what it takes to actually violate the law which makes it open to wide interpretation. Dan Park is critical of the Swedish migration policies and uses controversial imagery to attract attention to what he considers to be important issues. This used to be possible without running the risk of imprisonment until an amendment to the law was passed in 1982 [3].
This is the law text used [2]:
"Den som i uttalande eller i annat meddelande som sprids hotar eller uttrycker missaktning för folkgrupp eller annan sådan grupp av personer med anspelning på ras, hudfärg, nationellt eller etniskt ursprung, trosbekännelse eller sexuell läggning, döms för hets mot folkgrupp till fängelse i högst två år eller om brottet är ringa, till böter.
Är brottet grovt döms till fängelse i lägst sex månader och högst fyra år. Vid bedömande av om brottet är grovt skall särskilt beaktas om meddelandet haft ett särskilt hotfullt eller kränkande innehåll och spritts till ett stort antal personer på ett sätt som varit ägnat att väcka betydande uppmärksamhet."
This translates to:
"Anyone who in speech or any other form of expression threatens or expresses contempt for a group of persons identified by race, skin colour, national or ethnic origin, creed or sexual orientation is sentenced for incitement against a group to prison for up to two years or if the crime is of a lesser degree, to a fine.
For serious crimes the sentence is imprisonment for at least six months and no more than four years. In assessing whether the offence is serious, particular attention should be paid to whether the message had a particularly threatening or infringing content and was spread to a large number of persons in a manner that was designed attract significant attention."
[1] https://nyheteridag.se/dan-park-efter-fangelsedomen-vansinne...
[2] https://lagen.nu/1962:700#K16P8S1
[3] https://lagen.nu/prop/1981/82:58#B2