decodePsd method

PsdImage? decodePsd(
  1. List<int> bytes
)

Decode a raw PSD image without rendering it to a flat image.

Implementation

PsdImage? decodePsd(List<int> bytes) {
  final psd = PsdImage(bytes);
  if (!psd.decode()) {
    return null;
  }
  return psd;
}