fmw42 wrote:I am not sure I understand your question. I was saying that the background might be better if it was pure black. I am not saying to change the icons.
To change the background to black, wouldn't I have to know the location of the icons (in order to not color them black). If i knew where they were, couldn't i just use -crop? Or is there another way I can use.
If you have different patterns of icons, then you would need to use tile cropping differently for each depending upon the number and size of the icons. Otherwise, you would need to know the locations and size of each icon, so you can crop it without the need for the trim.
They aren't different patterns persay, but the number of icons per picture can change (because different mobile devices have different screen resolutions). so it might be 5 rows x 5 cols or 6 rows x 5 cols. I was proposing that maybe it would work if I could take all the different ratios that they are in, sort them by device, and manually compile "templates" for each device/resolution that would know exactly where the icons are, and I could have the user specify which resolution/device they took the screenshot from.
First I crop out the region with the icons.
Which command did you use to crop out the region?
If the background were solid black, then I could add -trim to the crop command and it should then remove the excess background, leaving only the icon.
Is there anyway to make the background solid black, or would it need to be solid black originally in the input image? If you have the images as shown in the animation, isn't it possible to just compare those to the database and get a "best fit" approximation for the matching image?