Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3334] If Image from camera is not saved in gallery will cause storage memory leaks

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2016-03-08T16:16:58.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterCREATIVE KAIZEN
AssigneeShak Hossain
Created2016-03-08T11:12:18.000+0000
Updated2016-03-08T16:16:58.000+0000

Description

Steps to Reproduce

*saveToPhotoGallery* property must be set to *false*
var showCamera = function() {
	
		Ti.Media.showCamera({
			success:function(event) {
                               alert('success');
				
			},
			cancel:function() {			
				// called when user cancels taking a picture
			},
			error:function(error) {
				alert('error');
			},
			saveToPhotoGallery:false,
		    // allowEditing and mediaTypes are iOS-only settings
		});
	};

showCamera();

Actual Result

Every photo taken by camera (no matter if later saved or not) will take some space (data on device). There is no way to release that space or get that file, so it will continuously increase taken space until no space is left. If you save the image after taking it, than the space taken is doubled (you create additional file). Of course you can delete saved image but it will only release half of taken space. There is no problem if *saveToPhotoGallery* is set to *true*

Expected Result

Space taken by the image should be released or there should be the way to get the files taking that space.

Comments

  1. Sharif AbuDarda 2016-03-08

JSON Source