I’d like to take a screenshot of an image, and extract the image out of the screenshot. For example: I’d like to dynamically extract that image out of the screenshot. However, I want to be able to dynamically detect where the image to be extracted is in the screenshot image. So for example, if I screenshotted an image on Instagram,
Tag: jimp
how to embed an image in a JSON response
I’m using Jimp to read in a JSON string that looks like this: As you can see the image node is a base64-encoded JPEG. I’m able to succesfully convert it to a TIFF and save it: However, when I attempted to embed the tiff inside of a JSON object, the TIFF gets all garbled up: Here’s the full code: How