当前位置:网站首页>Improve efficiency, take you to batch generate 100 ID photos with QR code
Improve efficiency, take you to batch generate 100 ID photos with QR code
2022-06-23 21:39:00 【Drink coke in the middle of the night】
The company's work card has been upgraded recently , Need to do more than a hundred people's work permits , Because the enterprise wechat QR code is added to the certificate , So it will be more troublesome , It takes time and effort to export one by one .
The designer asked me for help , It took me more than two hours to do it , I'm so tired , Is there a way to quickly export . Of course , As early as 17 I have done this in One click to generate certificate photo The job of , It's not difficult for me , But I still stepped on some pits , Here we will explain clearly the methods and misunderstandings .
Preparation stage
We use first PS Design the whole layout , Recommended size of drawing board 643×1056px, It should be noted that , Each variable requires a separate layer , The variables in the following figure are... On the horizontal line “ full name ”、“ department ”、“ Position ”、“ Job number ” And the bottom enterprise wechat QR code .
Preparing the database , The order is not required , But the necessary data should have , Try not to include other data in the file .
The image path here is the full path .
Then copy the contents of the table, including the variable name in the first row , Then copy to the new txt In file , Don't worry about alignment , The system will automatically detect tabs .
The other thing to say is , We have to ensure that the maximum length of the field does not exceed the designed board surface , Adjust the word spacing and size properly , So that all the contents can be fully displayed , Not covered .
Set a variable
Next we turn on PS, Click on “ Images ” - “ Variable ” - “ Definition ”, To define variables .
We are in the variables window , Select the layer where the variable is located , Then check it out. “ Text substitution ”, If it's a picture , Just choose “ Pixel replacement ”, Fill in the name as the variable name we set in the database .
Because pixel replacement can only replace Gridding Layer after , So before we define variables , The picture must be truncated , Otherwise, when setting , No variable type “ Pixel replacement ” The option to .
Import variable data group
After defining the variables one by one , You can import the database . Click on “ file ” - “ Import ” - “ Variable data group ” Enter the import data group operation .
Select the data file in the import option , And set the encoding type to “UTF-8”, The default setting will pop up a garbled error prompt .
Note that the following two check boxes need to be checked here , Avoid identification errors .
After importing successfully , Get into “ Images ” - “ Variable ” - “ Data sets ” Test whether the data is imported successfully . If it works , When we click the switch button , The contents of the data table below will change , If the content is wrong , There will be a corresponding prompt , For example, the image path cannot be found .
export file
Because all the documents are from psd The , We need to export all documents first psd file . Click on “ file ” - “ export ” - “ Data group as file ” Perform batch export operation .
We need to set the storage location , Used to store exported data sets psd file .
Click OK , Wait for psd File generation .
For exported psd file , Click on “ file ” - “ Script ” - “ image processor ” Execute the operation of exporting pictures , Click Run after setting the path .
It should be noted that , The settings in the preferences require adjustment , It doesn't need to move .
Click on “ function ” after , Software opens automatically and continuously psd file , And save the picture for you , Do not proceed at this time PS Other operating , Just wait for the script to run .
print typesetting
Because we need to print ID photos of certain sizes , Recommended word Typesetting .
We build new word file , Adjust the paper orientation to The transverse , Adjust the margins to 1cm.
Then drag all the generated diagrams directly into the document , At this time, ten ID photos can be printed on one page , Resources are used efficiently .
The above is the tutorial of one click batch generation of company ID photos written by cola for you
边栏推荐
- Data visualization: summer without watermelon is not summer
- Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis
- How to write test cases efficiently?
- Full text search of MySQL
- Authentication can be as simple as this - use the API gateway to protect your API security
- How does the video platform deployment give corresponding user permissions to the software package files?
- Outlook開機自啟+關閉時最小化
- How do I clean the ECS hard disk? Why do I clean the hard disk regularly?
- How to create cloud disk service how to create cloud disk service backup?
- Analysis of visual analysis technology
猜你喜欢

Four aspects of PMO Department value assessment

Selenium批量查询运动员技术等级

Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis

微信小程序中发送网络请求

Steps for formulating the project PMO strategic plan

Selenium batch query athletes' technical grades

How PMO uses two dimensions for performance appraisal

高阶柱状图之极环图与极扇图

个税怎么算?你知道吗

New SQL syntax quick manual!
随机推荐
Analysis of visual analysis technology
The printed picture is dark. It will make you clear in seconds
Arouter framework analysis
小程序ssl证书过期是什么原因导致的?小程序ssl证书到期了怎么解决?
Find My资讯|苹果可能会推出第二代AirTag,试试伦茨科技Find My方案
How to view the role of PMO in agile organizations?
SAP retail transaction code mp38 can perform forecasts for multiple items
Polling and connection
嵌入式开发:嵌入式基础——重启和重置的区别
Completely open source and permanently free, this markdown editor is really fragrant!
Real time crawler launches a number of special new products
Uniapp routing page Jump
On line project LAN on-line software use ----phpstudy
Cloud database smooth disassembly scheme
What is the use of PMP certification?
Selenium批量查询运动员技术等级
How many of the five app automated test AIDS have you used?
Teach you to turn the web page into Exe file (super simple)
2021-12-25: given a string s consisting only of 0 and 1, assume that the subscript is from
Start /affinity specifies the number of vcpu to run OpenSSL speed to test the performance of a single vcpu