{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/989","labels_url":"https://api.github.com/repos/square/picasso/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/989/comments","events_url":"https://api.github.com/repos/square/picasso/issues/989/events","html_url":"https://github.com/square/picasso/issues/989","id":70177352,"number":989,"title":"Picasso.resize is not working when width or height is 0","user":{"login":"chaitanya0bhagvan","id":4795989,"avatar_url":"https://avatars.githubusercontent.com/u/4795989?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanya0bhagvan","html_url":"https://github.com/chaitanya0bhagvan","followers_url":"https://api.github.com/users/chaitanya0bhagvan/followers","following_url":"https://api.github.com/users/chaitanya0bhagvan/following{/other_user}","gists_url":"https://api.github.com/users/chaitanya0bhagvan/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanya0bhagvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanya0bhagvan/subscriptions","organizations_url":"https://api.github.com/users/chaitanya0bhagvan/orgs","repos_url":"https://api.github.com/users/chaitanya0bhagvan/repos","events_url":"https://api.github.com/users/chaitanya0bhagvan/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanya0bhagvan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-22T16:42:47Z","updated_at":"2015-04-22T16:58:14Z","closed_at":null,"body":"The following code does not load the image.\r\n\r\n    Picasso.with(context)\r\n\t\t.load(inputImage)\r\n\t\t.resize(width, 0)\r\n\t\t.centerInside()\r\n\t\t.into(imageView);\r\n\r\nWhen I add a listener I get the following exception\r\n\r\n    04-22 12:25:45.152  24878-24878/com.example D/ImageCropActivity﹕ Image load failed: file:///storage/emulated/0/Pictures/JPEG_20150422_122538_-436522152.jpg exception: java.lang.IllegalArgumentException: width and height must be > 0\r\n    java.lang.IllegalArgumentException: width and height must be > 0\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:815)\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:794)\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:725)\r\n            at com.squareup.picasso.BitmapHunter.transformResult(BitmapHunter.java:558)\r\n            at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:232)\r\n            at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)\r\n            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n            at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n            at java.lang.Thread.run(Thread.java:818)\r\n            at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)\r\n\r\nI noticed that if I replaced .resize with .resizeDimen and specify the width or height as 0dp or 0px it works. \r\n\r\nI am using picasso 2.5.2. \r\n\r\nI am not sure whether I am doing something wrong or this is a bug"},"comment":{"url":"https://api.github.com/repos/square/picasso/issues/comments/95263694","html_url":"https://github.com/square/picasso/issues/989#issuecomment-95263694","issue_url":"https://api.github.com/repos/square/picasso/issues/989","id":95263694,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:58:14Z","updated_at":"2015-04-22T16:58:14Z","body":"@dnkoutso how?"}}