Their government forces them to uncover their heads when having pictures taken
Undoubtedly what some countries are doing, by preventing Muslim women from adhering to hijab, is a great evil and serious crime. If it is done by a kaafir country, there is no sin greater than kufr, but the tragedy is that such things are being done by people who call themselves Muslims. Equally abhorrent is what some countries do by forcing women to have pictures taken without hijab for official documents such as passports and ID cards. While we find kaafir countries that allow women to apply for official documents with a picture in hijab, at the same time we see some so-called Muslim countries refusing to allow that and going to extremes in that. What some kaafir countries and cities are doing now, trying to stop Muslim women from submitting pictures in hijab, is of secondary concern when compared with these so-called Muslim countries.
On 26/4/2004 news agencies reported that German courts had allowed Muslim women to submit pictures in which they appeared in hijab when applying for passports.
The Russian Supreme Court annulled the rulings of the Ministry of the Interior which required Russian citizens to have their pictures taken without a head cover, and the Supreme Court ruled that “female citizens whose religious beliefs do not allow them to appear in front of strangers without a head cover may have a picture with a head cover in the passport.”
Look at how the courts in some kaafir countries uphold the rights of Muslim women, whilst this right is opposed in countries that are supposedly Muslim.
Whatever the case, it is not permissible for a woman to obey anyone who tells her to disobey Allaah and take off her hijab in the street or in a picture. It is not permissible for a woman to do that unless it has reached the point of necessity, such as being compelled by force to do that, or if these documents are essential for the necessities of life.
It is not permissible to go against Islamic rulings in this case unless one is certain of the necessity or thinks it most likely. It is not permissible to do that for the sake of non-essential travel, rather it should only be done in the case of necessity and for essential documents such as residence permits and ID cards.
Whoever is forced to do that should not let a stranger (non-mahram) take her picture, rather (the photographer) should be a mahram to her or a woman like her, unless she cannot find anyone who meets that criterion, in which case she is excused. And it is not permissible for her to do any more than uncover the head. Some countries accept a picture in which the ears or the front of the head can be seen, so she should not go beyond that.
We ask Allaah to grant relief to the Muslims and to make strong their religion that He has chosen for them, and to help them and make them steadfast in obeying Him.
See also question no. 45672.
And Allaah knows best.