Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to replace image file name with hash #8

Closed
mrkingmidas opened this issue Dec 29, 2021 · 4 comments
Closed

Option to replace image file name with hash #8

mrkingmidas opened this issue Dec 29, 2021 · 4 comments

Comments

@mrkingmidas
Copy link

Hello!
Can you add option to replace image file name with hash ?
Needed for using in "media" big folder for markdown notes: "deduplicate" while processing many notes and for an unique file names

@mrkingmidas
Copy link
Author

Hello!

I am implement replacing names with SHA1 of content:

parser.add_argument('-n', '--replace-image-names', default=False, action='store_true',
                        help='Replace image names, using content hash')

https://www.dropbox.com/s/sgdpwzhnshstcto/ProcessLocalImagesReplaceNameSHA1.zip?dl=1

@artiomn
Copy link
Owner

artiomn commented Jan 13, 2022

Could you make pull request, please?
Dropbox is not very convenient solution.
It's better to look at the diff and process the review.

@artiomn
Copy link
Owner

artiomn commented Jan 18, 2022

Merged:

@artiomn
Copy link
Owner

artiomn commented Jan 18, 2022

Option was merged with -D, as a names_hashing.

@artiomn artiomn closed this as completed Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants