Better Icon Selection

Registered by Jjed on 2011-06-27

Archive Index currently selects icons purely by path. For example, it prefers icons in `/usr/share/icons/hicolor/scalable/` to icons `/usr/share/icons/hicolor/8x8/`, making the reasonable assumption that the former will provide better quality. Some common paths, however, carry icons with highly inconsistent levels of quality. For example, choosing between `/usr/share/pixmaps/ and `/usr/share/<app-name> is a crapshoot.

This specification will scope out the work required for Archive Index to intelligently select several likely targets for an app icon, extract them all, and use only the best.

Blueprint information

Status:
Started
Approver:
None
Priority:
Medium
Drafter:
Jjed
Direction:
Approved
Assignee:
Jjed
Definition:
Approved
Series goal:
Accepted for app-install
Implementation:
Started
Milestone target:
milestone icon fix-599535
Started by
Jjed on 2011-06-28

Sprints

Whiteboard

IconFinder should have the following behaviour:

* Try to find an icon in high quality directories in order of preference.
* If any found, extract and return the first result.
* Search for all matching icons "/usr/share".
* Run an evaluation function of each icon
-- If the icon belongs to a non-approved "*-icon-theme", it receives a 0.
-- If the extracted icon is a scalable, it receives 100. Otherwise it is rated by resolution.
-- Any icon with a high score is returned immediately. Otherwise, all icons are evaluated and the best is returned.

As extracting files from debs is performace critical, limited heuristics are acceptable.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.