Transfer portfolio from Degiro to IB (how to?)

Given the high transfer fees (found on reddit) depending in which exchange your positions are, you would have to calculate what is the best. Is there necessarily taxes that apply on top if you sell? Assuming it’s your only sell of the year and you were holding most of it for a while.