Lines 558-563
static Image *ReadPSDImage(const ImageIn
Link Here
|
558 |
ThrowReaderException(CorruptImageWarning,"Not a PSD image file",image); |
558 |
ThrowReaderException(CorruptImageWarning,"Not a PSD image file",image); |
559 |
(void) ReadBlob(image,6,(char *) psd_info.reserved); |
559 |
(void) ReadBlob(image,6,(char *) psd_info.reserved); |
560 |
psd_info.channels=ReadBlobMSBShort(image); |
560 |
psd_info.channels=ReadBlobMSBShort(image); |
|
|
561 |
if (psd_info.channels > 24) psd_info.channels = 24; |
561 |
psd_info.rows=ReadBlobMSBLong(image); |
562 |
psd_info.rows=ReadBlobMSBLong(image); |
562 |
psd_info.columns=ReadBlobMSBLong(image); |
563 |
psd_info.columns=ReadBlobMSBLong(image); |
563 |
psd_info.depth=ReadBlobMSBShort(image); |
564 |
psd_info.depth=ReadBlobMSBShort(image); |