@classmethod
    def from_stream(cls, fp, encoding='utf8'):
        decoded_data = psd_tools.decoder.parse(
            psd_tools.reader.parse(fp, encoding)
        )
        return cls(decoded_data)
Returns a new :class:`PSDImage` loaded from stream ``fp``.
dataset/ETHPy150Open psd-tools/psd-tools/src/psd_tools/user_api/psd_image.py/PSDImage.from_stream