Search found 2 matches
- 2016-02-16T18:47:12-07:00
- Forum: Users
- Topic: Help with converting a really weird image format to PNG
- Replies: 3
- Views: 1496
Re: Help with converting a really weird image format to PNG
I don't think imagemagick is the right tool for this job; it's not a format that it knows about already. I used matlab because I'm a hack fid = fopen('Format64Image.bin'); dim = [26 13]; first = fread(fid,1,'*int32','l'); palette = fread(fid,[first 4],'*uint8','l'); imgdata = fread(fid,dim,'*uint8 ...
- 2016-02-16T11:03:23-07:00
- Forum: Users
- Topic: Help with converting a really weird image format to PNG
- Replies: 3
- Views: 1496
Re: Help with converting a really weird image format to PNG
Followed the instructions - First int32 is 87, then (87*4) bytes defining the palette, then the remaining (26*13) bytes are each pixel's value (between 0 and 86, i.e. referencing a palette entry)
but couldn't make it look like much of a coherent image:
http://i.imgur.com/5S764yV.png
but couldn't make it look like much of a coherent image:
http://i.imgur.com/5S764yV.png