{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/6348","repository_url":"https://api.github.com/repos/Itseez/opencv","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/6348/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/6348/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/6348/events","html_url":"https://github.com/Itseez/opencv/issues/6348","id":144520602,"number":6348,"title":"jpeg exif reader","user":{"login":"ZTurlututu","id":18163906,"avatar_url":"https://avatars.githubusercontent.com/u/18163906?v=3","gravatar_id":"","url":"https://api.github.com/users/ZTurlututu","html_url":"https://github.com/ZTurlututu","followers_url":"https://api.github.com/users/ZTurlututu/followers","following_url":"https://api.github.com/users/ZTurlututu/following{/other_user}","gists_url":"https://api.github.com/users/ZTurlututu/gists{/gist_id}","starred_url":"https://api.github.com/users/ZTurlututu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZTurlututu/subscriptions","organizations_url":"https://api.github.com/users/ZTurlututu/orgs","repos_url":"https://api.github.com/users/ZTurlututu/repos","events_url":"https://api.github.com/users/ZTurlututu/events{/privacy}","received_events_url":"https://api.github.com/users/ZTurlututu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T09:42:00Z","updated_at":"2016-04-06T04:37:17Z","closed_at":null,"body":"### Please state the information for your system\r\n- OpenCV version: 3.1\r\n- Host OS: All\r\n\r\n### In which part of the OpenCV library you got the issue?\r\n- highgui\r\n- imread with jpeg pictures\r\n\r\nIf the picture have exif informations for rotation, imread rotate the picture with jpeg_exif reader.\r\nBut previous opencv 3.1 didn't do that. The exif information are dependent of hardware and not standardized and not sure.\r\n \r\n\r\n### Expected behaviour\r\nAdding a optional parameter for jpeg reading to use or not use exifs informations.\r\n\r\n### Actual behaviour\r\nNo choice possible and need to patch sources to add choice or disable exif reading for jpeg files.\r\n\r\n### Code example to reproduce the issue / Steps to reproduce the issue\r\n\r\n```\r\n#include \"opencv2/core.hpp\"\r\n#include <iostream>\r\nusing namespace std;\r\nusing namespace cv;\r\n\r\n// previously take a picture with a smartphone in landscape and in portrait.\r\n\r\nint main()\r\n{\r\n    Mat img = imread(\"landscape.jpg\", img);\r\n    imwrite(save_land.jpg, img);\r\n\r\n    img = imread(\"portrait.jpg\", img);\r\n    imwrite(save_port.jpg, img);\r\n\r\n    return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/206115151","html_url":"https://github.com/Itseez/opencv/issues/6348#issuecomment-206115151","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/6348","id":206115151,"user":{"login":"alalek","id":4981219,"avatar_url":"https://avatars.githubusercontent.com/u/4981219?v=3","gravatar_id":"","url":"https://api.github.com/users/alalek","html_url":"https://github.com/alalek","followers_url":"https://api.github.com/users/alalek/followers","following_url":"https://api.github.com/users/alalek/following{/other_user}","gists_url":"https://api.github.com/users/alalek/gists{/gist_id}","starred_url":"https://api.github.com/users/alalek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alalek/subscriptions","organizations_url":"https://api.github.com/users/alalek/orgs","repos_url":"https://api.github.com/users/alalek/repos","events_url":"https://api.github.com/users/alalek/events{/privacy}","received_events_url":"https://api.github.com/users/alalek/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T04:37:16Z","updated_at":"2016-04-06T04:37:16Z","body":"Reading of exif rotation info have been added (with tests). If it doesn't work then please add a sample image file.\r\nSaving is not implemented and I believe it will not be added in the nearest future."}}