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)
Tracking
(blocking-b2g:1.3T+, b2g-v1.3T fixed, b2g-v1.4 ?)
RESOLVED
FIXED
| blocking-b2g | 1.3T+ |
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.
| Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.3T?
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → johu
Comment 1•11 years ago
|
||
triage: 1.3T+ per dicsussion with product
blocking-b2g: 1.3T? → 1.3T+
Whiteboard: [tarako_only]
| Assignee | ||
Comment 2•11 years ago
|
||
this patch is for v1.3t. I will upload the patch for master and set the review flag to that patch.
| Assignee | ||
Comment 3•11 years ago
|
||
Use CONFIG_MAX_IMAGE_PIXEL_SIZE in open.js.
Attachment #8407422 -
Flags: review?(dflanagan)
| Assignee | ||
Comment 4•11 years ago
|
||
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]
Comment 5•11 years ago
|
||
hi David, mind looking at this patch when you get a chance? Thanks
Flags: needinfo?(dflanagan)
Comment 6•11 years ago
|
||
Comment on attachment 8407422 [details] [review]
patch for master
Looks good to me. Thanks, John.
Attachment #8407422 -
Flags: review?(dflanagan) → review+
Flags: needinfo?(dflanagan)
| Assignee | ||
Comment 7•11 years ago
|
||
| Assignee | ||
Comment 8•11 years ago
|
||
merged to v1.3t:
https://github.com/mozilla-b2g/gaia/commit/fed1cc94e76abccea85ae998329430bb46cb7e53
commit hash is wrong of my last message, it should be:
https://github.com/mozilla-b2g/gaia/commit/f0463704888881b8ed1619e8d4b0d851b0e0311b
Updated•11 years ago
|
Blocks: 1041853
status-b2g-v1.4:
--- → ?
| Assignee | ||
Comment 10•11 years ago
|
||
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)
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(ttsai)
Comment 11•11 years ago
|
||
(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)
| Assignee | ||
Comment 12•11 years ago
|
||
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)
| Assignee | ||
Comment 13•11 years ago
|
||
(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.
Description
•