{"action":"opened","issue":{"url":"https://api.github.com/repos/MKLab-ITI/multimedia-indexing/issues/8","labels_url":"https://api.github.com/repos/MKLab-ITI/multimedia-indexing/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MKLab-ITI/multimedia-indexing/issues/8/comments","events_url":"https://api.github.com/repos/MKLab-ITI/multimedia-indexing/issues/8/events","html_url":"https://github.com/MKLab-ITI/multimedia-indexing/issues/8","id":70282647,"number":8,"title":"The image names indexed in FolderIndexingMT may be incorrect","user":{"login":"futurely","id":9004594,"avatar_url":"https://avatars.githubusercontent.com/u/9004594?v=3","gravatar_id":"","url":"https://api.github.com/users/futurely","html_url":"https://github.com/futurely","followers_url":"https://api.github.com/users/futurely/followers","following_url":"https://api.github.com/users/futurely/following{/other_user}","gists_url":"https://api.github.com/users/futurely/gists{/gist_id}","starred_url":"https://api.github.com/users/futurely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurely/subscriptions","organizations_url":"https://api.github.com/users/futurely/orgs","repos_url":"https://api.github.com/users/futurely/repos","events_url":"https://api.github.com/users/futurely/events{/privacy}","received_events_url":"https://api.github.com/users/futurely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-23T02:10:07Z","updated_at":"2015-04-23T02:10:07Z","closed_at":null,"body":"In `gr.iti.mklab.visual.examples.FolderIndexingMT`, the image names are incorrect if the original filenames contain more than one dot and don't end with \".jpg\".\r\n```\r\n if (imvr != null) {\r\n        String name = imvr.getImageName();\r\n        name = name.split(\"\\\\.\")[0] + \".jpg\";\r\n        if (imvr.getExceptionMessage() == null) {\r\n          // vectorization completed with success!s\r\n          double[] vector = imvr.getImageVector();\r\n          if (index.indexVector(name, vector)) {\r\n```\r\nIn `gr.iti.mklab.visual.examples.UrlIndexingMT`, the image names are kept as they are.\r\n```\r\n\t\t\tif (imvr != null) {\r\n\t\t\t\tString name = imvr.getImageName();\r\n\t\t\t\tdouble[] vector = imvr.getImageVector();\r\n\t\t\t\tif (index.indexVector(name, vector)) {\r\n```"}}