Photoshop plus Border script __javascript

Source: Internet
Author: User
Tags border color

The initial script came from the network and added some functionality

/* Yat's description: This is the use of JavaScript language to write a dedicated CS script. This script extracts the EXIF information of the digital photograph, enters the photograph subject and the descriptive text, chooses the logo symbol, adds the frame for the photograph. Tested, the script was successfully applied in the 64-bit Photoshop CS5.1. Attention. The photo should contain EXIF information, otherwise the script will run an error.

In addition the photo short side width is best not less than 450 image number. Usage: 1, the direct operation of the border script used before using the need to modify the place: Notepad open jsx script file, the photographer information to modify the user's own network name ID, e-mail, website and other information.
If the photographer's information contains Chinese information, remember to change the English font of the subsequent calls to Chinese fonts such as "XXFarEastFont-Arial", otherwise the Chinese information will not be printed correctly. A manually run border script, in both cases, requires the user to open the script in Notepad and modify the relevant content: one is when you choose to print the lens information, you need to modify the lens model in the script.

The other is that when you select the default logo for this script directly from the Drop-down list, you need to modify the logo display text in the script and its file location first. 2, the script calls the method: Will compress the Jsx file in the package to release the copy to the specified folder. If it is a Chinese version of Photoshop CS2, copy the Jsx file to the folder C:\Program files\adobe\adobe photoshop cs2\ preset \ script. If this is an English version, copy the Jsx file to the folder C:\Program files\adobe\adobe Photoshop cs2\presets\scripts.

64-bit CS5.1 version, copy the Jsz file to the folder "C:\Program files\adobe\adobe Photoshop CS5.1 (bit) \presets\scripts". JSX files that are not downloaded are required: Copy text to Windows Notepad txt text, file backup, change filename suffix to jsx, and test the file into C\programadobefiles\adobe\adobe Photoshop cs3\ preset \
The script directory is OK.

64-bit CS5.1 version, copy the Jsz file to the folder "C:\Program files\adobe\adobe Photoshop CS5.1 (bit) \presets\scripts".


3, open PS, click on the file-script-the file name, appear dialog box, follow the prompts to do just that. This version of the original script author Yi isThe version is based on the following modifications: 1.
Retain a good name of the author input, image description input, optional EXIF information, font and text color, lens selection, border width selection, border color selection, label location, logo and other functions.
2. To increase the color selection of the inner edge, bold inside the edge.
3. Added the image side has no option.
4. The original dialog box layout, size, lens type made a little change. 5 for friends who like to adjust their programs according to their needs, add notes in the place where they can change. To facilitate the search, I do "in these places" to mark $number 6 The font size selection is changed to calculation settings and no longer requires manual selection.
If you are willing to set up manually, please keep the manual version. 7. The lens is added directly from the EXIF file to read.
Need to explain that, after different software processing EXIF information has changed, the lens information is often not, at this time also need manual input. 8. Increased the metering mode, which is the standard information in Exif, there should be no problem 9. Added exposure program, this is the standard information in Exif, there should be no problem 10. To guarantee the space needed for the vertical chart border, refer to the topic Description row with the date and time, and modify the algorithm 11 for font size and line spacing accordingly.

Added 4 logo Print locations (total 6): On the left side of the border, on the right side of the border, on the left of the picture, on the right of the picture, on the left;
6 This script can be used directly on CS2 and CS3, cs5.1.
7 The date of the final change of this script is: December 5, 2011 ==================================================================================== The following is a description of the changes made to the net in the release version 1, increased the option to flatten the Layer 2, increase the size of the options (such as narrowing not to enlarge) 3, increased the logo file is the existence of verification, to avoid the choice of use logo but can not find the file will be error 4, Added the option to save the configuration and read the configuration. This does not need to modify the source file to save their own information 5, added the baby birthday function 6, automatically loaded before the Save configuration information, do not have to manually load this file to obtain EXIF information in the way more complex, in fact, in the following ways can be obtained: VAR
	Docref = app.activedocument;
	var docinforef = Docref.info;
	var infostr= ""; for (Var i=0;i<docinforef.exif.length;i++) {infOstr+=docinforef.exif[i][0] + ': ' + docinforef.exif[i][1] + ' \ r ';
	var white = new Solidcolor ();

	white.rgb.red = White.rgb.green = White.rgb.blue = 255;
	Add text layer var namelayer = DocRef.artLayers.add ();
	Namelayer.kind = Layerkind.text;

	var TI = Namelayer.textitem;
	Set the position of the text layer, font, color and other parameters ti.position = [4,20];
	Ti.font = "Simhei";
	Ti.size = 16;

	Ti.color = white;
	
TI.CONTENTS=INFOSTR; The information taken out by this method is in Chinese on my side, considering that other places may be English, there are compatibility issues so not used if you know the two versions of the different description of the corresponding information can get a generic version of such as ' f-stop ' corresponding ' aperture size ' exposure time ' corresponding '
Exposure time ' test environment for CS5 (12.0.3), 32-bit system, other environment no test originally also want to add some batch processing function, later to see, if the master has a better change hope to share: Mail: free_for_all@163.com 2011-12-22 Winter Solstice Day ========================================================================== ==========
*/

Interface:




Add Border Effect:



The text layer is separate, can add effect, convenient edit.

Because the script is relatively large, put it at the following address:

http://download.csdn.net/detail/apollokk/5806613

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.