psdump icon indicating copy to clipboard operation
psdump copied to clipboard

version could be 1 or 2 for Pixel Aspect Ratio in image_resource.c

Open v1nce opened this issue 12 years ago • 0 comments

According to http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ version could be 1 or 2 for Pixel Aspect Ratio in image_resource.c

checking for 1 only results in a coredump for me.

I fixed it like this // (Photoshop CS) Pixel Aspect Ratio case 1064:
// 4 bytes (version = 1) psd_int val = psd_stream_get_int(context) ; psd_assert((val == 2) || (val == 1));

v1nce avatar Nov 28 '12 22:11 v1nce