{"action":"created","issue":{"url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/1","labels_url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/1/comments","events_url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/1/events","html_url":"https://github.com/RobinDavid/LSB-Steganography/issues/1","id":48938477,"number":1,"title":"curwidth & height","user":{"login":"aferriss","id":3698659,"avatar_url":"https://avatars.githubusercontent.com/u/3698659?v=3","gravatar_id":"","url":"https://api.github.com/users/aferriss","html_url":"https://github.com/aferriss","followers_url":"https://api.github.com/users/aferriss/followers","following_url":"https://api.github.com/users/aferriss/following{/other_user}","gists_url":"https://api.github.com/users/aferriss/gists{/gist_id}","starred_url":"https://api.github.com/users/aferriss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aferriss/subscriptions","organizations_url":"https://api.github.com/users/aferriss/orgs","repos_url":"https://api.github.com/users/aferriss/repos","events_url":"https://api.github.com/users/aferriss/events{/privacy}","received_events_url":"https://api.github.com/users/aferriss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-16T00:57:05Z","updated_at":"2015-10-08T14:30:18Z","closed_at":null,"body":"Hi,\r\n\r\nI think the curwidth and curheight and reversed on line 34 and line 40...?\r\n\r\nswitched them and seems to be working fine for me now. Thanks!"},"comment":{"url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/comments/146563849","html_url":"https://github.com/RobinDavid/LSB-Steganography/issues/1#issuecomment-146563849","issue_url":"https://api.github.com/repos/RobinDavid/LSB-Steganography/issues/1","id":146563849,"user":{"login":"pabloriutort","id":5110926,"avatar_url":"https://avatars.githubusercontent.com/u/5110926?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloriutort","html_url":"https://github.com/pabloriutort","followers_url":"https://api.github.com/users/pabloriutort/followers","following_url":"https://api.github.com/users/pabloriutort/following{/other_user}","gists_url":"https://api.github.com/users/pabloriutort/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloriutort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloriutort/subscriptions","organizations_url":"https://api.github.com/users/pabloriutort/orgs","repos_url":"https://api.github.com/users/pabloriutort/repos","events_url":"https://api.github.com/users/pabloriutort/events{/privacy}","received_events_url":"https://api.github.com/users/pabloriutort/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T14:30:18Z","updated_at":"2015-10-08T14:30:18Z","body":"Tried both versions and I got the same error as @aferriss using @RobinDavid's version and Ubuntu:\r\n```\r\nOpenCV Error: One of arguments' values is out of range (index is out of range) in cvPtr2D, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/array.cpp, line 1797\r\nTraceback (most recent call last):\r\n  File \"script.py\", line 8, in <module>\r\n    steg.hideImage(imagetohide)\r\n  File \"/home/pablo/Proyectos/LSB-Steganography-master/LSBSteg.py\", line 145, in hideImage\r\n    self.putBinaryValue(self.byteValue(int(val)))\r\n  File \"/home/pablo/Proyectos/LSB-Steganography-master/LSBSteg.py\", line 56, in putBinaryValue\r\n    val = list(self.image[self.curwidth,self.curheight]) #Get the pixel value as a list\r\ncv2.error: index is out of range\r\n```\r\n\r\nImages used were [this](https://courses.cit.cornell.edu/ee475/BruceDesign/Mica.datapath.gif) to hide on [this one](http://www.emuseo.org/ssp_director/p.php?a=ZXt3c2FvVGBhf3ljZ1sxOzEkfHduJzg0Nyo4ODAiKyQgIjE%2FOicqMSY6LiY0LT4yJiYrOSc%2FLjI2&m=1331059363). First was changed from .gif to .jpg.\r\n\r\nFinally, I downloaded [this blob](https://github.com/Buggaboo/LSB-Steganography/blob/dev/LSBSteg.py) from @Buggaboo's pull request and it works perfectly :+1: "}}