Closed Bug 1108952 Opened 11 years ago Closed 11 years ago

[FFOS7715 v2.1][gaia][gallery]Special picture will lead to exception of other picture‘s thumbnail generation.

Categories

(Firefox OS Graveyard :: Gaia::Gallery, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1106877

People

(Reporter: jinchao.wang, Unassigned)

References

Details

Attachments

(1 file)

Attached image Special picture —
Produce Set: 1.put 100 pictures in SD card and contain the Special picture. 2.flash a new phone 3.Put SD card into the phone 4.power on the phone 5.enter gallery 6.gallery will scan and parse pictures 7.When gallery finish scanning,there will be some exception on some picture‘s thumbnail generation. Analysis: gaia/apps/gallery/js/MetadataParser.js In this JS file,it will use cropResizeRotate(file, null, thumbnailSize, null, metadata,callback) to to parse JPG/JPEG. But in function of cropResizeRotate,it will change the value of thumbnailSize. So other JPG/JPEG picture will use a changed thumbnailSize to invoke cropResizeRotate().
Priority: -- → P2
Summary: [gaia][camera][1.4 porting 2.1]Special picture will lead to exception of other picture‘s thumbnail generation. → [gaia][camera][2.1]Special picture will lead to exception of other picture‘s thumbnail generation.
Hi Vance: I think it's a serious problem.We has fix this issue on our side code using patch. My method,but I think it's not very good: diff --git a/apps/gallery/js/MetadataParser.js b/apps/gallery/js/MetadataParser.js @@ -289,6 +307,12 @@ var metadataParser = (function() { // jpegs will have a type 'pjpeg' and will be handled below // like png images. if (metadata.type === 'jpeg') { + // SPRD: bug 368498, thumbnailSize use constant {@ + thumbnailSize = { + width: THUMBNAIL_WIDTH, + height: THUMBNAIL_HEIGHT + }; + // SPRD: bug 368498 end @} cropResizeRotate(file, null, thumbnailSize, null, metadata, function gotThumbnail(error, thumbnailBlob) { if (error) {
Flags: needinfo?(vchen)
Summary: [gaia][camera][2.1]Special picture will lead to exception of other picture‘s thumbnail generation. → [gaia][camera][FFOS7715 v2.1]Special picture will lead to exception of other picture‘s thumbnail generation.
Severity: major → critical
Summary: [gaia][camera][FFOS7715 v2.1]Special picture will lead to exception of other picture‘s thumbnail generation. → [FFOS7715 v2.1][gaia][gallery]Special picture will lead to exception of other picture‘s thumbnail generation.
good news, just be fixed by 1106877
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(vchen)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: