Closed
Bug 931125
Opened 13 years ago
Closed 12 years ago
[Gallery] [Camera] We have to take into account the screen pixel ratio when checking if the thumbnail fills the screen
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:hd+, b2g-v1.1hd fixed, b2g-v1.2 fixed)
People
(Reporter: dmarcos, Assigned: dmarcos)
References
Details
Attachments
(1 external file, 1 obsolete file)
In the Gallery and the Camera app we check if the EXIF thumbnail is large enough to fill the device screen. We only make use of window.innerWidth and window.innerHeight but we don't not taking into account the device pixel ratio (window.devicePixelRatio). Thumbnails will be stretched in HD devices and the rendered images will look blurry. Below the correct way to calculate the minimum size for a thumbnail:
var thumbnailMinimumWidth = window.innerWidth * window.devicePixelRatio;
var thumbnailMinimumHeight = window.innerHeight * window.devicePixelRatio;
| Assignee | ||
Updated•13 years ago
|
blocking-b2g: --- → hd?
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → dmarcos
Flags: needinfo?(dmarcos)
| Assignee | ||
Comment 3•13 years ago
|
||
Yes. I got this one
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Comment 5•12 years ago
|
||
Attachment #829392 -
Attachment is obsolete: true
Attachment #829393 -
Flags: review?(dflanagan)
Updated•12 years ago
|
Target Milestone: --- → 1.3 Sprint 4 - 11/8
Comment 6•12 years ago
|
||
Comment on attachment 829393 [details] [review]
Pull Request
Looks good to me, if you fix the error in the metadata parser file.
I can't do a full review since this is a PR against one of your own branches rather than against master, but from what I can see the code looks fine.
Attachment #829393 -
Flags: review?(dflanagan) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Landed on master:
https://github.com/mozilla-b2g/gaia/commit/ce41989a456a60ffdcccb9f19033ccce26ac99be
Landed on v1.2:
https://github.com/mozilla-b2g/gaia/commit/ee1fdceb8c5cfdde190e41a0b22ed3d2823f4c65
Landed on v1.1.0hd:
https://github.com/mozilla-b2g/gaia/commit/de91d544cfe9b005240ef0be2600f8a6f520e0f0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
status-b2g-v1.1hd:
--- → fixed
status-b2g-v1.2:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•