How can I extract app icons from a screenshot of a phone's home screen?

Viewed 33

I need to cut out iPhone app icons from home screen image so i would have each icon image separately. I manage to crop icons perfectly from image that i screenshot on my iPhone but when i try to run same script on different image from different iPhone that have a different screen size, it didn't work right which i expected because i hard code crop values. So i trying to find a way how can i crop icons from different iPhone screen sizes. I think i should create some type of grid for different iPhone and base on that grid and iPhone model i can crop image perfectly. Also i want to be available to a specific icon that i want to crop it.

enter image description here

0 Answers
Related