Closed Bug 997051 Opened 11 years ago Closed 11 years ago

[Gallery] the MAX_IMAGE_SIZE in inline viewer doesn't not use customization config value

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+, b2g-v1.3T fixed, b2g-v1.4 ?)

RESOLVED FIXED
blocking-b2g 1.3T+
Tracking Status
b2g-v1.3T --- fixed
b2g-v1.4 --- ?

People

(Reporter: johnhu, Assigned: johnhu)

References

Details

Attachments

(2 files)

The MAX_IMAGE_SIZE is hardcoded as 5MB pixel. This should use customization config value.
blocking-b2g: --- → 1.3T?
Assignee: nobody → johu
triage: 1.3T+ per dicsussion with product
blocking-b2g: 1.3T? → 1.3T+
Whiteboard: [tarako_only]
Attached file patch for 1.3t
this patch is for v1.3t. I will upload the patch for master and set the review flag to that patch.
Attached file patch for master
Use CONFIG_MAX_IMAGE_PIXEL_SIZE in open.js.
Attachment #8407422 - Flags: review?(dflanagan)
This is a defect in lots branches since bug 900399 landed, not torako only. So, we should patch it from leo to master if we need to do it.
Whiteboard: [tarako_only]
Blocks: 992505
hi David, mind looking at this patch when you get a chance? Thanks
Flags: needinfo?(dflanagan)
Blocks: 995122
Comment on attachment 8407422 [details] [review] patch for master Looks good to me. Thanks, John.
Attachment #8407422 - Flags: review?(dflanagan) → review+
Flags: needinfo?(dflanagan)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 1041853
status-b2g-v1.4: --- → ?
Hi John: can you also generate a 1.4 patch? Thanks!
Flags: needinfo?(im)
Sure Thomas. But this bug depends on bug 998228, do I need to generate both of them? Or do I just need to write the missing part of MAX_IMAGE_SIZE?
Flags: needinfo?(im)
Flags: needinfo?(ttsai)
(In reply to John Hu [:johnhu][:johu][:醬糊小弟] from comment #10) > Sure Thomas. But this bug depends on bug 998228, do I need to generate both > of them? Or do I just need to write the missing part of MAX_IMAGE_SIZE? I just want to confirm if this camera.json of tarako is also valid in dolphin after your 1.4 patch. If the setting is still valid after your v1.4 patch, please generate 1.4 patch. thanks! { "maxImagePixelSize": 2097152, "maxSnapshotPixelSize": 1920000, "maxGifImageFileSize": 1048576, "maxPickPixelSize": 480000, "maxEditPixelSize": 480000 }
Flags: needinfo?(ttsai) → needinfo?(im)
We should enlarge the values for dolphin which is with 256MB. I cannot tell which value is correct. The patch of v1.4 may be just an uplift from master. I can do it. But we may need 1.4+ to land the code.
Flags: needinfo?(im)
(In reply to thomas tsai from comment #11) > { > "maxImagePixelSize": 2097152, > "maxSnapshotPixelSize": 1920000, > "maxGifImageFileSize": 1048576, > "maxPickPixelSize": 480000, > "maxEditPixelSize": 480000 > } To telling more about this config file: 1. we may need to uplift bug 997051 to enable "maxImagePixelSize" in open.html 2. we may need to uplift bug 995148 to enable "maxGifImageFileSize" in app and open.html 3. we may need to uplift bug 989290 to enable "maxPickPixelSize" in app 4. we may need to uplift bug 998095 to enable "maxEditPixelSize" in app Hope that helps.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: