The label gives input 100-240, V 50-60Hz, which covers the European countries as well as the USA.
As such you only need a plug adapter, which only changes the shape of the plug but does not do anything to the power going through it.
If you have a wall cord that fits the brick and is the European kind, you can use that.
But I would just buy a plug adapter.
From that picture I can not work out whether it has a two pin plug or a three pin one.
If a three pin, one with grounding, you have to be careful to get a grounded adapter plug, one that fits Italy and one that fits Spain, (which might be the same or might be a different one.)
If it is a two pin, so without grounding, any two pin 'Euro plug' adapter plug will do, it are the three pin ones that are different for different countries that all use the same two pin Euro plug.
There are several kinds of plug adapter, you can use the smaller kind that is lighter and easier to transport.