Can I use the same size for a Spanish DNI and passport?
For standard applications in Spain, the Ministry of the Interior lists a photo 26 mm wide by 32 mm high for both. Check the instructions for your appointment, especially when applying through a consulate.