Heat is the same but it's dangerous because the enlarger head insulation is not mains-rated and probably not earthed; it depends on the transformer isolation for safety.

Secondly, the transformer is probably ferroresonant and therefore providing some regulation that reduces brightness variation with mains voltage.

Seriously bad idea, sorry.