Page MenuHomePhabricator

[4.1.7.168] Regression: lead images not positioned correctly
Closed, ResolvedPublic

Assigned To
Authored By
Etonkovidova
Jul 27 2015, 11:39 PM
Referenced Files
F276282: IMG_0253.PNG
Jul 27 2015, 11:39 PM
F276299: IMG_0254.PNG
Jul 27 2015, 11:39 PM
F276286: IMG_0252.PNG
Jul 27 2015, 11:39 PM

Description

Steps to reproduce

  1. Clean install
  2. Go to Barack Obama

Expected results

IMG_0253.PNG (2×1 px, 1 MB)

Actual results

IMG_0252.PNG (2×1 px, 1 MB)

'Nellie Kim' (lead image; the thumbnail for Saved/Recent is correct)

IMG_0254.PNG (2×1 px, 966 KB)


Dev notes

The property where focal rects were stored was initialized to an empty array, meaning that we always thought face detection previously ran, even when it didn't. Property is no initialized to nil as expected, and tests were added to ensure proper behavior in the following cases:

  • New image w/o any data on disk (detection hasn't run, no faces)
  • Image w/ data on disk w/o a focalRects field (detection hasn't run, no faces—same as above)
  • Image w/ data on disk with focalRects field set to empty array (detection has run, no faces)
  • Image w/ data on disk w/ focalRects field set to non-empty array (detection has run, hasFaces is true)

Event Timeline

Etonkovidova raised the priority of this task from to Needs Triage.
Etonkovidova updated the task description. (Show Details)
Etonkovidova subscribed.
BGerstle-WMF renamed this task from [4.1.7.170 alpha] Regression: lead images not positioned correctly to [4.1.7.168] Regression: lead images not positioned correctly.Jul 29 2015, 9:59 PM
BGerstle-WMF claimed this task.
BGerstle-WMF set Security to None.
BGerstle-WMF updated the task description. (Show Details)
BGerstle-WMF updated the task description. (Show Details)

Checked on 4.1.7.171 beta(release candidate) on iPad mini iOS 8.2 - 'Barack Obama' display is correct.
'Nellie Kim'(and also 'Viceregal consort of Canada') lead img are still displayed incorrectly, but it's not a regression. Closing the issue.

Etonkovidova updated the task description. (Show Details)