{"action":"opened","issue":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/2884","repository_url":"https://api.github.com/repos/fex-team/webuploader","labels_url":"https://api.github.com/repos/fex-team/webuploader/issues/2884/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/webuploader/issues/2884/comments","events_url":"https://api.github.com/repos/fex-team/webuploader/issues/2884/events","html_url":"https://github.com/fex-team/webuploader/issues/2884","id":348556883,"node_id":"MDU6SXNzdWUzNDg1NTY4ODM=","number":2884,"title":"compress 开启裁切，为何有的图片可以裁切，有的无法裁切","user":{"login":"wujianhua0427","id":20244181,"node_id":"MDQ6VXNlcjIwMjQ0MTgx","avatar_url":"https://avatars1.githubusercontent.com/u/20244181?v=4","gravatar_id":"","url":"https://api.github.com/users/wujianhua0427","html_url":"https://github.com/wujianhua0427","followers_url":"https://api.github.com/users/wujianhua0427/followers","following_url":"https://api.github.com/users/wujianhua0427/following{/other_user}","gists_url":"https://api.github.com/users/wujianhua0427/gists{/gist_id}","starred_url":"https://api.github.com/users/wujianhua0427/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wujianhua0427/subscriptions","organizations_url":"https://api.github.com/users/wujianhua0427/orgs","repos_url":"https://api.github.com/users/wujianhua0427/repos","events_url":"https://api.github.com/users/wujianhua0427/events{/privacy}","received_events_url":"https://api.github.com/users/wujianhua0427/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T02:57:15Z","updated_at":"2018-08-08T02:57:15Z","closed_at":null,"author_association":"NONE","body":"                //配置压缩的图片\r\n                compress: {\r\n                    width: width,\r\n                    height: height,\r\n                    // 图片质量，只有type为`image/jpeg`的时候才有效。\r\n                    quality: 90,\r\n                    // 是否允许放大，如果想要生成小图的时候不失真，此选项应该设置为false.\r\n                    allowMagnify: false,\r\n                    // 是否允许裁剪。\r\n                    crop: true,\r\n                    // 是否保留头部meta信息。\r\n                    preserveHeaders: true,\r\n                    // 如果发现压缩后文件大小比原来还大，则使用原来图片\r\n                    // 此属性可能会影响图片自动纠正功能\r\n                    noCompressIfLarger: false,\r\n                    // 单位字节，如果图片大小小于此值，不会采用压缩。\r\n                    compressSize: 0\r\n                },"}}
{"actor":{"display_login":"wujianhua0427"}}