Closed
Bug 944603
Opened 11 years ago
Closed 7 years ago
[B2G][Helix][Gallery][zhaodawei]Images are not clear when preivew them in gallery.
Categories
(Firefox OS Graveyard :: Gaia::Gallery, defect, P2)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: lecky.wanglei, Unassigned)
Details
Attachments
(1 obsolete file)
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; aff-kingsoft-ciba; Zune 4.7)
Steps to reproduce:
1、Take some pictures by the back-face camera.
2、Launch the gallery APP.
3、Choose one of them and preview it.
4、Double click the picture.
Actual results:
In step 3,you will see a thumbnail image.It does not show the image clearly and seems not focus successfully.
In step 4,you will see the fullsize image.It shows the image clearly.
Expected results:
Can it always show the image clearly?
Through tracking the codes,in function |displayImage| from file |/gaia/shared/js/media/media_frame.js|,I found as following:
When funciton |isPreviewBigEnough| return true, it will diplay the thumbnail image,otherwise it will display the fullsize image.
If I modify the codes and always display the fullsize image. There will be some bugs as follow:
1/When the image is too big, it will diplay part and then display all content.
2/All the running apps will be killed when I click the thumbnails quickly in camera APP. Please see bug928614.
I try to optimize this feature.
In the end of the function |displayImage|,I add the following codes:
if (this.displayingPreview)
{
this._switchToFullSizeImage();
}
The purpose is that:
1/When user choose one image to preview,first we show the thumbnail image quikly.
2/Then we call the function |_switchToFullSizeImage| to show the fullsize image after 1 second.
But it will introduce other problems.
Whether there are someone can give me some suggestion?
blocking-b2g: --- → hd?
OS: All → Gonk (Firefox OS)
Priority: -- → P2
Hardware: All → ARM
Comment 2•11 years ago
|
||
We use the preview image generated by camera module which is 480x640 for a 5MP image. That's the correct size to display the preview image in helix device which uses 480x800 as its device pixels.
The only difference here is the resizing algorithm between camera module and gecko image element.
The problem is that the 480*640 preview image is more fuzzy than the fullsize image.
If some one use the FFOS phone firstly.It is hard for him to know how to show the fullsize image.
Especially for the photographer,they will think that the camera can not focus successfully.Or they will think the performance of the camera is so poor.
So I think we should do something to improve the display mode.
(In reply to John Hu [:johnhu] from comment #2)
> We use the preview image generated by camera module which is 480x640 for a
> 5MP image. That's the correct size to display the preview image in helix
> device which uses 480x800 as its device pixels.
The only difference here is
> the resizing algorithm between camera module and gecko image element.
Attachment #8344439 -
Attachment is obsolete: true
Updated•11 years ago
|
blocking-b2g: hd? → ---
Comment 5•7 years ago
|
||
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•