More functions, including generation-from-link and more param adjustment from command line#3
Open
Abyss-Seeker wants to merge 16 commits into
Open
More functions, including generation-from-link and more param adjustment from command line#3Abyss-Seeker wants to merge 16 commits into
Abyss-Seeker wants to merge 16 commits into
Conversation
Improved version that enables more arguments in input
Added some descriptions
Added dimensions description
added dimensions setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pic_hide_barcode
From original author:
hide barcode in a picture. 在一张普通图片里隐藏二维码,可以被微信识别。这个代码谁都可以用,唯独有一个人不给用,抖X上有个叫“大神开发”的营销号,先后盗了我十几个原创视频,我从未见过如此厚颜无耻之人!
What is new in this fork:
Here are quotes discussing different input methods:
Quotes about Input Methods:
Basic Usage:
python pic_hide_barcode.pyGeneral input / ouput path:
--imgPutongPath "path/to/Basepic.jpg"or-pin "path/to/Basepic.jpg"--imgOutputPath "path/to/Outputpic.jpg"or-pout "path/to/Outputpic.jpg"Using QR code path directly (Only available when not using link):
--imgBarcodePath "path/to/QRcode.jpg"or-qrin "path/to/QRcode.jpg""By providing the path to your QR code image directly, you can seamlessly integrate it into your base picture."
Using a link to generate QR code:
--link "your-link-here"or-l "your-link-here""With the ability to generate a QR code from a provided link, you can dynamically incorporate relevant URLs into your images."
Fine-tuning position, size, and mode:
--anchor_x x_valueor-x x_value(Requires anchor_y to be set)--anchor_y y_valueor-y y_value(Requires anchor_x to be set)--dimensions side_lengthor-d side_length(Alters dimension of the QR code)--mode mode_valueor-mode mode_value(No need for this if you have already set the anchor_x and anchor_y)"Adjusting the anchor position and mode allows for precise placement and alignment of the QR code within your image."