Closed Bug 997059 Opened 10 years ago Closed 10 years ago

[Tarako] Make image cropper in the gallery picker configurable, and disable it in tarako

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+, b2g-v1.3 unaffected, b2g-v1.3T affected)

RESOLVED INVALID
blocking-b2g 1.3T+
Tracking Status
b2g-v1.3 --- unaffected
b2g-v1.3T --- affected

People

(Reporter: timdream, Assigned: johnhu)

References

Details

Attachments

(2 files)

Please read bug 992505, and maybe bug 996141.

Our current image cropper implementation takes too much memory and triggers OOM a lot when being used in the picker. Confirmed with Marvin offline, we decided to turn off the the image cropper in the gallery picker for tarako. John will help to make a switch for build time customization.

To workaround this missing feature the user is encouraged to use the standalone "edit" feature in Gallery app to crop the image, before going to other app and use the picker.
Flags: needinfo?(johu)
triage: 1.3T+ per discussion with Product
blocking-b2g: 1.3T? → 1.3T+
Whiteboard: [tarako_only]
Add a new config called CONFIG_NO_CROP_TOOL_IN_PICKER. When this value is true, we don't crop the image and return file-based blob reference.

This patch will only be landed to 1.3t.
Attachment #8407415 - Flags: review?(dflanagan)
Flags: needinfo?(johu)
(In reply to John Hu [:johnhu][:johu][:醬糊小弟] from comment #2)
> This patch will only be landed to 1.3t.

We should land it on all branches since it's switchable.
Whiteboard: [tarako_only]
Flags: needinfo?(johu)
I'm not sure this makes sense.  In bug 989290 I'm working on rotating images when they are picked. If the Tarako camera driver continues to use EXIF image orientation, any pick activity for a portrait mode photo will require more memory than cropping does.  

So unless we can solve the EXIF orientation issue, I don't think it makes sense to remove cropping.

I'm going to see what happens with my 989290 patch before reviewing this one.
Flags: needinfo?(johu)
as per bug 995149 comment 17, the cropper tool works fine in 2MP limitation. We don't need to remove it.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Attachment #8407415 - Flags: review?(dflanagan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: