PNG图片256色的IDAT部分
博客里有PNG文件结构分析的文章:http://www.cnblogs.com/cymheart/archive/2005/08/21/219377.html
里面的图片用的是色深为4
00000000h: 89 50 4E 47 0D 0A 1A 0A 00 00 00 0D 49 48 44 52 ; 塒NG........IHDR
00000010h: 00 00 00 08 00 00 00 08 04 03 00 00 00 36 21 A3 ; .............6!?
00000020h: B8 00 00 00 27 50 4C 54 45 FF FF 00 FF ED 00 FF ; ?..'PLTE.?
00000030h: C1 00 FF 99 00 FF 66 00 FF 3B 00 FF 0F 00 E2 00 ; ??f.;...?
00000040h: 15 B7 00 34 8B 00 54 60 00 73 33 00 99 09 00 B2 ; .?4?T`.s3.?.?
00000050h: 5F F5 BB DD 00 00 00 33 49 44 41 54 78 DA 01 28 ; _趸?..3IDATx?(
00000060h: 00 D7 FF 00 CB A9 87 65 00 BA 98 76 54 00 A9 87 ; .?.拴噀.簶vT.﹪
00000070h: 65 43 00 98 76 54 32 00 87 65 43 21 00 76 54 32 ; eC.榲T2.噀C!.vT2
00000080h: 10 00 65 43 21 00 00 54 32 10 00 24 A7 0B A4 C6 ; ..eC!..T2..$?て
00000090h: FC 00 62 00 00 00 00 49 45 4E 44 AE 42 60 82 ; ?b....IEND瓸`
将4改为8后图片不能在ps中打开,请问色深为8(即256色)时,IDAT部分数据应如何编码?谢谢大侠!
------解决方案--------------------
alchemy.exe ---n -o -8 in.png out.png
http://www.handmade.com
------解决方案--------------------
PLTE 你那使用了调色板,具体看我的博客