{"id":27174735,"url":"https://github.com/theraphael0000/diff_and_merge_raw_translation","last_synced_at":"2025-04-09T12:15:47.165Z","repository":{"id":37645320,"uuid":"231211564","full_name":"TheRaphael0000/diff_and_merge_raw_translation","owner":"TheRaphael0000","description":"Merge images folders from scanlations and raws mangas, useful when the manga doesn't have an official translation","archived":false,"fork":false,"pushed_at":"2023-07-07T19:34:17.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-07T20:27:29.161Z","etag":null,"topics":["diff","image-diff","imagehash","manga","mergetool","raws","scanlation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheRaphael0000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-01T12:07:25.000Z","updated_at":"2023-07-07T20:27:29.161Z","dependencies_parsed_at":"2023-01-21T12:48:35.016Z","dependency_job_id":null,"html_url":"https://github.com/TheRaphael0000/diff_and_merge_raw_translation","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRaphael0000%2Fdiff_and_merge_raw_translation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRaphael0000%2Fdiff_and_merge_raw_translation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRaphael0000%2Fdiff_and_merge_raw_translation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRaphael0000%2Fdiff_and_merge_raw_translation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheRaphael0000","download_url":"https://codeload.github.com/TheRaphael0000/diff_and_merge_raw_translation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036056,"owners_count":21037093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","image-diff","imagehash","manga","mergetool","raws","scanlation"],"created_at":"2025-04-09T12:15:46.120Z","updated_at":"2025-04-09T12:15:47.088Z","avatar_url":"https://github.com/TheRaphael0000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purpose\n\nThe purpose of this script is to take two folder of images (a and b) and merge into another folder (c), in the following way :\n\n-   Every images in (a) and (b) have their order considered (by their filename)\n-   Images in (a) and (b) can be compared with a threshold to determine if they are related (considered as the same image).\n-   (b) is considered as the reference. We use comparison of imagehash for this task.\n-   If images in (a) are not in (b), these images are removed. (Extra image)\n-   If images in (b) are not in (a), these images are added. (Missing image)\n-   If an image is both in (a) and (b), the image from (a) is kept. (New image)\n\n**The script can be used for example to create a new folder of image (c) based on a scanlation of a manga (a)\nand the original manga (b).\n(c) will contain the original manga with the page translated but without the images added by the scanlation team.**\n\n# How to use it ?\n\n## Install\n\n```bash\ngit clone https://github.com/TheRaphael0000/diff_and_merge_raw_translation\ncd diff_and_merge_raw_translation\npip install -r requirements.txt\n```\n\n## Example\n\n```bash\npython cli.py --help\npython cli.py \"translation\" \"raw\" \"output\" -t 17 -y -q\n```\n\n# TODO\n\n-   [x] Algorithm\n-   [x] CLI\n-   [ ] Use os.walk instead of os.listfiles when loading images to handle subfolder, and also verify that we only load images without crashes.\n-   [ ] GUI : to check that the diff\u0026merge is correct and to adapt the threshold\n-   [ ] README.md : Visual example of the algorithm.\n-   [ ] Package : Create a proper python package\n-   [ ] Setuptools : Create the setup.py script (include a script to run the cli and the gui)\n-   [ ] Pypi : Publish to pypi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheraphael0000%2Fdiff_and_merge_raw_translation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheraphael0000%2Fdiff_and_merge_raw_translation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheraphael0000%2Fdiff_and_merge_raw_translation/lists"}