And if anyone is using LiveCode or OpenXTalk IDE to mess around with Decker here's script for converting an image control contents to another image control with the required Mac II color palette:
on mouseUp export image "Original" to myVariable as gif with palette getDeckerMacIIPalette() -- set the text of another image control to myVariable to preview: set the text of image "16ColorVersion" to myVariable -- then you can save the new gif to a file with: -- where tFileName is a file path you provide must provide -- -- open file tFileName for binary write;write myVariable to file tFileName;close file tFileName end mouseUp function getDeckerMacIIPalette get "255,255,255" & cr & \ "255,255,0" & cr & \ "255,101,0" & cr & \ "220,0,0" & cr & \ "255,0,151" & cr & \ "54,0,151" & cr & \ "0,0,202" & cr & \ "0,151,255" & cr & \ "0,168,0" & cr & \ "0,101,0" & cr & \ "101,54,0" & cr & \ "151,101,54" & cr & \ "185,185,185" & cr & \ "134,134,134" & cr & \ "69,69,69" & cr & \ "0,0,0" -- the sorting of this list effects the resulting image sort it numeric by item 1 of each return it end getDeckerMacIIPalette