{"action":"created","issue":{"url":"https://api.github.com/repos/flovilmart/parse-image/issues/16","repository_url":"https://api.github.com/repos/flovilmart/parse-image","labels_url":"https://api.github.com/repos/flovilmart/parse-image/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/flovilmart/parse-image/issues/16/comments","events_url":"https://api.github.com/repos/flovilmart/parse-image/issues/16/events","html_url":"https://github.com/flovilmart/parse-image/issues/16","id":183369983,"number":16,"title":" Could not execute GraphicsMagick/ImageMagick","user":{"login":"taileshrbamankar","id":8307327,"avatar_url":"https://avatars.githubusercontent.com/u/8307327?v=3","gravatar_id":"","url":"https://api.github.com/users/taileshrbamankar","html_url":"https://github.com/taileshrbamankar","followers_url":"https://api.github.com/users/taileshrbamankar/followers","following_url":"https://api.github.com/users/taileshrbamankar/following{/other_user}","gists_url":"https://api.github.com/users/taileshrbamankar/gists{/gist_id}","starred_url":"https://api.github.com/users/taileshrbamankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taileshrbamankar/subscriptions","organizations_url":"https://api.github.com/users/taileshrbamankar/orgs","repos_url":"https://api.github.com/users/taileshrbamankar/repos","events_url":"https://api.github.com/users/taileshrbamankar/events{/privacy}","received_events_url":"https://api.github.com/users/taileshrbamankar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-17T09:41:54Z","updated_at":"2016-11-25T23:33:07Z","closed_at":null,"body":"I getting this error :\n\nError generating response. ParseError {\n  code: 141,\n  message: [Error: Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-format\" \"%wx%h\" \"-\" this most likely means the gm/convert binaries can't be found] }\n\nI deployed my application of aws elasticbeanstalk.\n\nBelow are cloud code to Generate thumbnail using aws photo url and save thumbnail to parse file\n\nvar Image = require(\"parse-image\");\nvar request = require('request');\n\nParse.Cloud.define(\"TestImageCropFuntion\", function(request, response) {\n    var fs = require('fs'),\n    im = require('imagemagick');\n    var albumobjct = request.params.imageurl;\n    // response.success(albumobjct);\n    var image_url = albumobjct._url;\n    var image_name = albumobjct._name;\n    Parse.Cloud.httpRequest({\n      url: image_url\n    }).then(function(response) {\n        var image = new Image();\n        return image.setData(response.buffer);\n    }).then(function(image) {\n        /_Crop the image to the smaller of width or height._/\n        var size = Math.min(image.width(), image.height());\n        return image.crop({\n            left: (image.width() - size) / 2,\n            top: (image.height() - size) / 2,\n            width: size,\n            height: size\n        });\n    }).then(function(image) {\n        /_Resize the image to 64x64._/\n        return image.scale({\n            width: 500, //250\n            height: 500 //250\n        });\n    }).then(function(image) {\n        /_Make sure it's a JPEG to save disk space and bandwidth._/\n        return image.setFormat(\"JPEG\");\n    }).then(function(image) {\n        /\\* Get the image data in a Buffer._/\n        return image.data();\n    }).then(function(buffer) {\n        /_Save the image into a new file.*/\n        var base64 = buffer.toString(\"base64\");\n        var cropped = new Parse.File(image_name, {\n            base64: base64\n        });\n        return cropped.save({useMasterKey: true});\n    }).then(function(cropped) {\n        response.success(cropped._url);\n    }).then(function(result) {\n        console.log(\"result final then\" + result);\n    }, function(error) {\n        response.error(error);\n    });\n});\n"},"comment":{"url":"https://api.github.com/repos/flovilmart/parse-image/issues/comments/263032370","html_url":"https://github.com/flovilmart/parse-image/issues/16#issuecomment-263032370","issue_url":"https://api.github.com/repos/flovilmart/parse-image/issues/16","id":263032370,"user":{"login":"junal","id":1189620,"avatar_url":"https://avatars.githubusercontent.com/u/1189620?v=3","gravatar_id":"","url":"https://api.github.com/users/junal","html_url":"https://github.com/junal","followers_url":"https://api.github.com/users/junal/followers","following_url":"https://api.github.com/users/junal/following{/other_user}","gists_url":"https://api.github.com/users/junal/gists{/gist_id}","starred_url":"https://api.github.com/users/junal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junal/subscriptions","organizations_url":"https://api.github.com/users/junal/orgs","repos_url":"https://api.github.com/users/junal/repos","events_url":"https://api.github.com/users/junal/events{/privacy}","received_events_url":"https://api.github.com/users/junal/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T23:33:07Z","updated_at":"2016-11-25T23:33:07Z","body":"@taileshrbamankar did you find any solution?"}}
{"actor":{"display_login":"junal"}}