当前位置:网站首页>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
边栏推荐
- Global and Chinese markets of natural starch 2022-2028: Research Report on technology, participants, trends, market size and share
- Go local variables & global variables
- The printed picture is dark. It will make you clear in seconds
- Ffmpeg for audio and video commands
- What are the advantages of attaching a virtual machine to a hard disk cloud server
- Open source C # WPF control library --newbeecoder UI User Guide (II)
- Bi-sql index
- What causes the applet SSL certificate to expire? How to solve the problem when the applet SSL certificate expires?
- Find My资讯|苹果可能会推出第二代AirTag,试试伦茨科技Find My方案
- RI Gai series: push of STD container_ Why is back slower than []
猜你喜欢

Four aspects of PMO Department value assessment

Simple code and design concept of "back to top"

Embedded development: embedded foundation -- the difference between restart and reset

Lightweight, dynamic and smooth listening, hero earphone hands-on experience, can really create

How to gradually improve PMO's own ability and management level

大一女生废话编程爆火!懂不懂编程的看完都拴Q了

Bluetooth chip | Renesas and Ti launch new Bluetooth chip, try Lenz st17h65 Bluetooth ble5.2 chip

智能座舱SoC竞争升级,国产7nm芯片迎来重要突破

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading

个税怎么算?你知道吗
随机推荐
Find My资讯|苹果可能会推出第二代AirTag,试试伦茨科技Find My方案
DM sub database and sub table DDL "optimistic coordination" mode introduction - tidb tool sharing
What can RFID fixed assets management system bring to enterprises?
How to evaluate performance optimization? Covering too much knowledge?
How to expand the capacity of ECS disk? What are the advantages of using cloud disk
Selenium batch query athletes' technical grades
Analysis of visual analysis technology
Thinking about distributed system consensus
Cloud database smooth disassembly scheme
2021-12-25: given a string s consisting only of 0 and 1, assume that the subscript is from
Is it safe to open an account for flush stock?
Do you really understand the cache penetration, cache breakdown and cache avalanche in rotten street?
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
【Proteus仿真】LCD1602+DS1307按键设置简易时钟
Teach you to turn the web page into Exe file (super simple)
What is the process of opening a mobile card account? Is online account opening safe?
Outlook开机自启+关闭时最小化
The printed picture is dark. It will make you clear in seconds
Wechat smart operation 3.0+ Alipay digital transformation 3.0
What are the main dimensions of PMO performance appraisal?