  The dynamical evolution of internal space-like dimensions breaks the
invariance of the Maxwell's equations under Weyl rescaling of the (conformally
flat) four-dimensional metric. Depending upon the number and upon the dynamics
of internal dimensions large scale magnetic fields can be created. The
requirements coming from magnetogenesis together with the other cosmological
constraints are examined under the assumption that the internal dimensions
either grow or shrink (in conformal time) prior to a radiation dominated epoch.
If the internal dimensions are growing the magnitude of the generated magnetic
fields can seed the galactic dynamo mechanism.
