Cross-origin permission for local file

I would like to get the RGB pixel data of an image that I drag-and-drop to the browser, i.e. an image from my harddrive that is in the Chrome Active Tab.

I am not sure what permission I should ask for it in the manifest file, since the address of the image is “file:///C:/Users…”

If the image is on the web, then I can ask for cross-origin permission such as “https://*/*“, and everything works, but for my local image I get an error: “The canvas has been tainted by cross-origin data.”

To get the pixel data I followed the direction of:

How to get a pixel’s x,y coordinate color from an image?

Thanks