I’m using screencapture to capture a window on my Mac to the clipboard.
screencapture -icwd ’ works fine
I then want to crop and display image.
I try to use the dimensions on the screen to crop image, but the pixel width and height of the picture I get from the clipboard has way more pixels.
Is there a simple way to do this? e.g. some ratio? or do I have to use some type of edge detection algorithm to crop the clipboard image and then display? And by the way if anyone has an edge detection algorithm, ping me