Open Bug 1335819 Opened 3 years ago Updated 2 years ago
Highlights algorithm: Use main image size
For ranking highlights the desktop add-on calculates the size of the main image: > Math.min(image.width * image.height, 1e5) Right now we only have the URL and do not know the size, so we use 0 for no image and 1 for image exists. Either store the size in our metadata JSON blob or access the stored image to determine the size (see bug 1301718).
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
The tricky part about this is that we have never loaded that image in the first place: It usually comes from og:image or other metadata that is not loaded for displaying the website. The page-metadata-service from the desktop addon uses fastimage  to load a tiny bit of data to determine the image size.  https://github.com/ShogunPanda/fastimage  https://github.com/sdsykes/fastimage
Iteration: 1.16 → ---
Priority: P1 → P2
Assignee: s.kaspari → nobody
Status: ASSIGNED → NEW
All open Activity Stream bugs are moving from the whiteboard tag, "[mobileAS]", to the Firefox for Android component, "Activity Stream", so that I can keep better track of these bugs as the new triage owner; I will send out an email shortly with additional details, caveats, etc.
Component: General → Activity Stream
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195 Needinfo :susheel if you think this bug should be re-triaged.
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.