What is the law for taking pictures on cellphones?

What is the law for taking pictures on cellphones?

الجواب حامدا و مصلیا

According to our research, as long as digital photos are not printed out it is not deemed as unlawful, whether it is on a cellphone or a computer. However, if these pictures consist of unlawful things; (such as) women, non-mahrams etc. then just like it is not permissible to look at them externally (i.e. physically), it is not permissible to look at them from a computer or cellphone etc.

This Q&A was indexed from the official english fatwa portal of Jamia Binoria. It is an Islamic educational institute in Karachi, Pakistan.

Link