Bonjour.
Je cherche à renseigner les informations du JPG (clique droit->propriété->résumé) sous Photoshop.
L'idée est de créer un script que récupère les infos IPTC et de les copier dans cet endroit mystérieux.
Merci d'avance.
Bonjour.
Je cherche à renseigner les informations du JPG (clique droit->propriété->résumé) sous Photoshop.
L'idée est de créer un script que récupère les infos IPTC et de les copier dans cet endroit mystérieux.
Merci d'avance.
Évènements dans le 06?
www.sortir06.com
Bonjour afrodje
Les proprietes IPTC il faut les renseigner manuellement ou par un script jsx - celui fournit dans l aide javascript de photoshop :
Tu regardes au paragraphe DocumentInfo/Properties.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 //DocumentInfo.jsx // Save the current preferences var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS4 to use pixels and display no dialogs app.displayDialogs = DialogModes.NO // ask the user for the input and output folders var inputFolder = Folder.selectDialog("Select a folder to tag") var outputFolder = Folder.selectDialog("Select a folder for the output files") // see if we got something interesting from the dialog if (inputFolder != null && outputFolder != null) { // get all the files found in this folder var fileList = inputFolder.getFiles() // save the outputs in JPEG var jpegOptions = new JPEGSaveOptions() // set the jpeg quality really low so the files are small jpegOptions.quality = 1 // open each one in turn for (var i = 0; i < fileList.length; i++) { // The fileList includes both folders and files so open only files if (fileList[i] instanceof File && fileList[i].hidden == false) { // get a reference to the new document var docRef = open(fileList[i]) // tag all of the documents with photo shoot information docRef.info.author = "Adobe programmer" docRef.info.caption = "Adobe Photo shoot" docRef.info.captionWriter = "Adobe programmer" docRef.info.city = "San Jose" docRef.info.copyrightNotice = "Copyright (c) Adobe programmer Photography" docRef.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK docRef.info.country = "USA" docRef.info.provinceState = "CA" // change the date to a Adobe Photoshop CS4 date format // "YYYYMMDD" var theDate = new Date() // the year is from 1900 ???? var theYear = (theDate.getYear() + 1900).toString() // convert the month from 0..12 to 00..12 var theMonth = theDate.getMonth().toString() if (theDate.getMonth() < 10) { theMonth = "0" + theMonth } // convert the day from 0..31 to 00.31 var theDay = theDate.getDate().toString() if (theDate.getDate() < 10) { theDay = "0" + theDay } // stick them all together docRef.info.creationDate = theYear + theMonth + theDay // flatten because we are saving to JPEG docRef.flatten() // go to 8 bit because we are saving to JPEG docRef.bitsPerChannel = BitsPerChannelType.EIGHT // save and close docRef.saveAs(new File(outputFolder + "/Output" + i + ".jpg"), jpegOptions) // don’t modify the original docRef.close(SaveOptions.DONOTSAVECHANGES) } } } // Reset the application preferences app.displayDialogs = startDisplayDialogs
Pour les info exif ellles sont contenuees dans l image et il suffit de ne pas les perdre lors des compressions ( eviter enregistrer pour le web ).
Ok merci de votre aide.
Mais est-ce qu'il est possible d'avoir accès aux informations d'un fichier de Windows (clique droit->propriété->résumé) sous Photoshop?
Évènements dans le 06?
www.sortir06.com
Je viens de m'apercevoir que les infos windows du fichier sont accessible, sur photoshop à Fichier-> information.
Mais sont visible sur vista et non sur XP, c'est pour cela que je ne voyais pas les info du fichier.
Pourquoi cette différence entre ces 2 OS?
Évènements dans le 06?
www.sortir06.com
Évènements dans le 06?
www.sortir06.com
Normalement si tu n as pas d info c est qu elles ne sont pas contenues dans l image : tu les as perdues en cours de route .....
Pour avoir un maximum d informations j utilise " ExifToolGUI.exe ".
Évènements dans le 06?
www.sortir06.com
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager