{ "id": "170679", "key": "AC-5472", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-01-03T22:03:51.000+0000", "created": "2017-12-25T12:13:05.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-03T22:03:51.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "After capturing image from the camera, I displayed the following data in the console:\r\n*Initial Image (wxh): 640 x 480*\r\n*Initial Image Type: image/jpeg*\r\n\r\nI tried to compress this image through imageAsCompressed function as below:\r\n\r\n*e.media.imageAsCompressed(0.5);*\r\n\r\nI got the following error:\r\n\r\n\r\n{code:java}\r\n[ERROR] TiBlob: (main) [11225,16243] Unable to get the thumbnail image. Unknown exception: null\r\n[ERROR] TiBlob: java.lang.NullPointerException\r\n[ERROR] TiBlob: \tat org.appcelerator.titanium.TiBlob.imageAsCompressed(TiBlob.java:801)\r\n[ERROR] TiBlob: \tat org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)\r\n[ERROR] TiBlob: \tat org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)\r\n[ERROR] TiBlob: \tat org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)\r\n[ERROR] TiBlob: \tat org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:70)\r\n[ERROR] TiBlob: \tat android.os.Handler.handleCallback(Handler.java:733)\r\n[ERROR] TiBlob: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] TiBlob: \tat android.os.Looper.loop(Looper.java:136)\r\n[ERROR] TiBlob: \tat android.app.ActivityThread.main(ActivityThread.java:5001)\r\n[ERROR] TiBlob: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] TiBlob: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] TiBlob: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n[ERROR] TiBlob: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n[ERROR] TiBlob: \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}\r\n\r\n\r\nDocumentation: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Blob-method-imageAsCompressed\r\nTitanium SDK version: 6.3.0.GA\r\nTested on: Genymotion Emulator (Samsung Galaxy Note 3 - 4.4.4 - API 19 - 1080x1920)", "attachment": [], "flagged": false, "summary": "imageAsCompressed is not working", "creator": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "432549", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~malhajj],\r\nThanks for sharing with us. Please provide a full sample test code that regenerates the issue. Better to provide a sample app as an attachment here. We will test the issue in our environment. Also, provide us your detail environment information .\r\n\r\nBest", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-12-26T05:51:09.000+0000", "updated": "2017-12-26T05:51:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }