当前位置:网站首页>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
边栏推荐
- Open source C # WPF control library --newbeecoder UI User Guide (II)
- RI Gai series: push of STD container_ Why is back slower than []
- 高阶柱状图之极环图与极扇图
- Global and Chinese market of gas fire pit 2022-2028: Research Report on technology, participants, trends, market size and share
- The new track of flagship chip is finally clear
- Real time crawler launches a number of special new products
- Global and Chinese markets of natural starch 2022-2028: Research Report on technology, participants, trends, market size and share
- Simple code and design concept of "back to top"
- Phpkf CMS 3.00 beta y6 remote code execution
- [同源策略 - 跨域问题]
猜你喜欢

Four aspects of PMO Department value assessment

Steps for formulating the project PMO strategic plan

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

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

How to calculate individual income tax? You know what?

I am 30 years old, no longer young, and have nothing

实验五 模块、包和库

嵌入式开发:嵌入式基础——重启和重置的区别

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

Minimize outlook startup + shutdown
随机推荐
How does the video platform deployment give corresponding user permissions to the software package files?
Open source C # WPF control library --newbeecoder UI User Guide (II)
How to make a label for an electric fan
Outlook開機自啟+關閉時最小化
Cloud database smooth disassembly scheme
What hard disk does the ECS use? What are the functions of the ECS
Real time crawler launches a number of special new products
Start optimization - directed acyclic graph
I am 30 years old, no longer young, and have nothing
Analysis of a series a e-commerce app docommandnative
SAP retail wrmo replenishment monitoring
同花顺开户是安全的吗?
After easydss is configured with domain name / public IP, it will always prompt for troubleshooting problems that do not exist in the service
Uniapp routing page Jump
数据可视化之:没有西瓜的夏天不叫夏天
ZABBIX custom monitoring item (server monitoring)
Wechat is new. You can create applications from Excel
Polling and connection
How to use smart cloud disk service differences between local disk service and cloud disk service
TDD开发模式推荐流程