The tutorial is mainly divided into three steps
First, preparatory work;
1, the product marking the PSD source file, PSD contains the need to change the price, the main product map and all other elements that do not need to change.
① reserves a hidden text layer that is free of content. (named for file)
② Note the alignment of the price text in advance. (If you want the price to be this effect 99.99 needs to be filled in two text, and the left number is set to right, the right number is set to left-aligned; and the Excel table price is separate.) )
2, the need to mark the main items of the image jpg file, and each picture with the product ID name.
"If it is the first time, this step of the workload is not small, but if the activity is frequent, the need for regular price, the next time you do not need to organize the main map."
(In the example, the folder is named "Picture," as long as it corresponds to the table described later.) )
3, contains commodity ID, price, picture path of txt or CSV file (TXT file seems more convenient).
①id is placed in the first column to facilitate late file export naming;
②id and price each activity already has Excel table, the path can use hyphen & batch generation;
Win System for example path = "Picture" &A2& ". jpg"
Mac system recommended Write absolute path = "/users/apple/desktop/picture/" &A2& ". jpg"
③ Copy this part of the content pasted into TXT file;
④ put the TXT and the previously saved pictures in the same folder. (It doesn't matter where you write the absolute path)
Second, batch generation of PSD source files
1, define variables.
① Open the prepared PSD source file, turn on "image" → "variable" → "definition", will pop up this interface.
② Select the price layer, "text replacement" tick, the name and the previous prepared TXT table header consistent.
③ Select the hidden text layer reserved, "text Replace" tick, the name is the same as the TXT table header prepared before.
④ Select the main chart layer, "pixel replacement" tick, the method by default does not move the "limit", the name and the previous prepared TXT table header consistent.
⑤ Click "OK" in the top right corner
2, import data group.
① turn on "image" → "Variable" → "Data Group", in the pop-up interface click Import.
② Select the TXT file that you just put in the picture folder, encode the default "automatic", check "use first column as Data group name", click OK.
(If one step of the above step is wrong, it will pop-up error window, the definition of variable name, number and TXT in certain discrepancies)
③ in the returned window click "Apply", the first set of data will appear in the window.
(If pop-up error window, usually the path is filled with errors, or the table ID and picture ID does not match)
3. Export Data Group to PSD file.
① Select "File" → "Export →" data group as File
② Select the export path (the filename will be named by default in "TXT first column", or ID).
③ click "OK" and PS will export the PSD file for each master chart.
Third, batch conversion psd for picture format
1, recording the conversion action.
① opens "window" → "action" in turn, create a new action, click "Record", PS starts recording.
② Open a PSD file, stored as "web format", Format JPG quality General 70-80%,
③ then click OK to select the Export directory.
④ recommends clicking on the store again and then turning off the PSD. (PSD does not change the situation can not be stored, you could easily move the layer, you can save)
⑤ action recording finished, click "Stop Record", at this time a complete set of action recording.
(This set of actions will always exist PS, the next double-click the action of the "Export", select the export directory, you can directly use this set of actions)
2, batch processing-playback action.
① you do not need to open any files at this time, select "File" → "automatic" → "batch processing";
② in the pop-up window, select the action just recorded, select the PSD file that needs to be converted, check "Open command in Overwrite action" (pop-up window prompts, directly determine); Target Select folder, then select Export Directory, click OK.
Products in the topic page no regular tofu block (PNG-24 format)
—————— If the tutorials are useful to you, please be a little bit ——————Category: