I don't however want the user to see the image.
So far here is what I got:
Code: Select all
answer files "Select the files you wish to process:"
put it into TheFilePath
import paint from file TheFilePath into image "ImageFile" of card id 1028
answer color with 255,255,255
put it into Color2Tint1
set the ink of image "ImageFile" to blendDifference -- I don't know if this isn't the correct one for tinting. Haven't found that yet.
wait 10 tick
export snapshot from rectangle (the rectangle of image "ImageFile") of card id 1028 to file "Thumbnail.png" as PNG