18 Replies Latest reply on May 20, 2014 4:52 AM by bdleeuw

    how put exif data on a photo?

    Plastic743 Level 1

      Is there someone how have a good script or action to put the exif date on a photo?

      I have lookin on internet and find scripts but the don't working in photoshop cs6 dutch.

        • 1. Re: how put exif data on a photo?
          JJMack Most Valuable Participant

          http://www.mouseprints.net/old/dpr/StampExif.jsx

          Use script in an action to add a text layer then the action can move the current layer and style it...

          http://mouseprints.net/old/dpr/Examples/StampEXIF.jpg

          • 2. Re: how put exif data on a photo?
            Chuck Uebele Adobe Community Professional & MVP

            I've got one too, but unfortunately it's geared for my work and only works on Win systems.  It builds a text block similar to PS's dialog box for creating file names.  I might have to see about modifying it for public use.

             

            EXIF script.jpg

            • 4. Re: how put exif data on a photo?
              Plastic743 Level 1

              Thanks JJ Mack but how can a get the date on the photo I only have thisNaamloos-1.jpg

              I Have found that i can change the color also the owner but where i can find to put the date on the picture?

               

              Many thanks

              • 5. Re: how put exif data on a photo?
                JJMack Most Valuable Participant

                I just did a copy paste of that script I posted. saved it as test.jsx on my desktop. Open at raw file in CS6. added a black fill layer on top and then droped test.jsx from my desktop onto to CS6 this it what it produced. Are you sure your exif data is still therestampexif.jpg

                • 6. Re: how put exif data on a photo?
                  Plastic743 Level 1

                  Yes i am sure I think the problem is that a using a dutch version of photoshop.Naamloos-2.jpg

                  • 7. Re: how put exif data on a photo?
                    JJMack Most Valuable Participant

                    I would think EXIF data is a standard? here what mine looks like:

                    exif.jpg

                     

                    There are variables you can set if you name is not in the EXIF data set Biz= and Owner=

                     


                     

                     

                    /* Null business owner */

                    var Biz = "";

                    var Owner = "";

                    /* Variables You can hard code your business owner here */

                    // var Biz = "Mouseprints";

                    // var Owner = "John J McAssey";

                    /*  sizeFactor influences text size 1 will use largest font 2 will half that font size     */

                    var sizeFactor = 1;

                    /* textX and TextY positions text placement 0 and 0 Top Left corner of image in pixels     */

                    var textX = 0;

                    var textY = 0;

                    /* Internal Photoshop Text name                                        */

                    var fontName = "ArialMT";

                    var fontName = "TimesNewRomanPSMT";

                    var fontName = "Tahoma";

                    /* Text Color                                                  */

                    textColor = new SolidColor;

                    textColor.rgb.red = 255;

                    textColor.rgb.green = 255;

                    textColor.rgb.blue = 255;

                    /* END Variables You can hard code your business owner here */

                     

                    I woul still think date should show

                    • 8. Re: how put exif data on a photo?
                      Plastic743 Level 1

                      However if a just exifdata.jsx from your site it is working see picture below. I gone try out what is the difference between the two scripts. Many thanks for the quick responce

                      Naamloos-1.jpg

                      • 9. Re: how put exif data on a photo?
                        JJMack Most Valuable Participant

                        I see it is the language

                         if (key == "Date Time Original") {
                         // alert ("Key=" + key + " Data=" + keyData );
                         var phoTime = keyData;
                         var dateArray1 = phoTime.split(" ", 2);
                         phoTime = dateArray1[0];
                         phoHour = dateArray1[1];
                         var dateArray2 = phoTime.split(":");
                         var monthsArray = ["January","February","March","April","May","June","July","August","September","October","November","December"];
                         phoTime = monthsArray[dateArray2[1]-1]+" " + dateArray2[2]+ ", " + dateArray2[0] +" @ " + phoHour;
                         var picYr = dateArray2[0];
                         }
                        
                        

                        Its looking for english "Date Time Original"

                        1 person found this helpful
                        • 10. Re: how put exif data on a photo?
                          Plastic743 Level 1

                          Many thanks i have changed the "Data Time Original" with "datum en tijd - oorsprongelijk" and also the other things from exif to my dutch version. I would post the script here so other person can also use but  i can not do copy paste in this editor.

                          • 11. Re: how put exif data on a photo?
                            Plastic743 Level 1

                            I have found that crtl +v also work this is the script

                            // This script was hacked from one I downloaded from the web JJMack 2008

                            /*  Script to stamp copyright and camera data of shot   */

                            // This script is supplied as is. It is provided as freeware.
                            // The author accepts no liability for any problems arising from its use.

                            /*
                            <javascriptresource>
                            <about>$$$/JavaScripts/StampExif/About=JJMack's Stamp Exif.^r^rCopyright 2009 Mouseprints.^r^rScript utility for action.^rNOTE:Add Text Layer with Fomatted EXIF Data!</about>
                            <category>JJMack's Action Utility</category>
                            </javascriptresource>
                            */

                            // enable double-clicking from Mac Finder or Windows Explorer


                            // bring application forward for double-click events
                            app.bringToFront();

                            // ensure at least one document open
                            if (!documents.length) {
                            alert('There are no documents open.', 'No Document');
                            }

                            // if at least one document exists, then proceed
                            else {
                            main();
                            }

                            ///////////////////////////////////////////////////////////////////////////////
                            // main - main function
                            ///////////////////////////////////////////////////////////////////////////////
                            function main() {

                            /* Null business owner */
                            var Biz = "";
                            var Owner = "Bruno";

                            /* Variables You can hard code your business owner here */
                            // var Biz = "Mouseprints";
                            // var Owner = "John J McAssey";
                                    /*  sizeFactor influences text size 1 will use largest font 2 will half that font size */
                            var sizeFactor = 1;
                                    /* textX and TextY positions text placement 0 and 0 Top Left corner of image in pixels */
                            var textX = 0;        
                            var textY = 0;
                            /* Internal Photoshop Text name        */       
                                    var fontName = "ArialMT";
                            var fontName = "TimesNewRomanPSMT";
                            var fontName = "Tahoma";
                            /* Text Color          */
                            textColor = new SolidColor;     
                            textColor.rgb.red = 255;
                            textColor.rgb.green = 0;
                            textColor.rgb.blue = 0;
                            /* END Variables You can hard code your business owner here */

                                    // remember users Ruler avd Type Units and set ours
                            var strtRulerUnits = app.preferences.rulerUnits;
                            var strtTypeUnits = app.preferences.typeUnits;
                            app.preferences.rulerUnits = Units.PIXELS;
                              app.preferences.typeUnits = TypeUnits.PIXELS;

                            /* Trying to figure out font size for the number of lines to cover the document height  */
                            /* and getting setting text area to cover the document was a trip. Adobe Postscript trip */
                            /* I believe that 72 or 72.27 Point/Pica Size Photoshop Preference maybe I should see if */
                            /* I could retrieve it. Anyway mine is set to 72 Setting the document resolution taking  */
                            /* the document width and dividing by 72 would probably yield number of characters that  */
                            /* would fit in the document width. Setting the documents resolution comes into play  */
                            /* with Photoshop text support. Using the documents height and dividing the by the number */
                            /* of lines of text I needed I hoped would yield the font size I needed. However that  */
                            /* did not work the text area was correct the number of text lines did not fit. I needed */
                            /* to use a smaller font.  When the document resolution is set to 72 DPI and I set a text */
                            /* layer font size to 72 and the text area the number of pixels I want and observing  */
                            /* Photoshop's text options bar there I see a one 1 to one relationship. 72 px = 72 px.  */
                            /* If I set the documents resolution lower and set a Photoshop text layer font size to  */
                            /* 72 px I see Photoshop scale the number to a lower number of pixels in the option bar. */
                            /* Just what I needed. Setting the Documents resolution to 60 DPI let the number of line */
                            /* I needed fit on the document. However Photoshop also scaled the text area I set down  */
                            /* in size and that number of lines did not fit within that area. I needed to scale the  */
                            /* text area up. Scaling the Text area up using 72/resolution did the trick...    */
                                    var testres = 60;
                            res = app.activeDocument.resolution;
                            if(res!=testres){ app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.v alue,testres); }

                             

                            /* Define var to be used to avoid undefined */
                            var expTime = "";
                            var expPgm = "";
                            var expCmp = "";
                            var mtrMode = "";
                            var ev = "";
                            var flshCode = "";
                            var flshMode = "";
                            var focLength = "";
                            var Fstop = "";
                            var ISO = "";
                            var Model = "";
                            var CameraModel = "";
                            var Artist = "";
                            var maxF = "";
                            var wbMode = "";
                            var phoTime = "";
                            var picYr = "";
                            var lens = "";
                            var cpyrt = "";
                            var remShutter = "";
                            var remAperture = "";
                            var remISO = "";

                            var docName = app.activeDocument.name;
                            /* END var to be used to avoid undefined */

                            try {   // get active document
                              var doc = app.activeDocument;
                            }
                            catch (e){
                              alert("No Document Open..." );
                            }

                            var exifInfo = "";



                            try {
                              // alert( "doc.info.exif=" + doc.info.exif );
                              var numExifItems = doc.info.exif.length;
                              // alert( "numExifItems=" + numExifItems );
                                            for (var i = 0; i < doc.info.exif.length; i++){
                                exifInfo = exifInfo + doc.info.exif[i][0] + " = " + doc.info.exif[i][1] + "\r";

                            /* ---------------------------------- Extracting Data I want to Stamp  formated ----------------------------------------------------------------------- */
                                                    checkThisItem(doc.info.exif[i][0], doc.info.exif[i][1])
                               key=doc.info.exif[i][0];
                               keyData=doc.info.exif[i][1];

                               if (key == "Artist") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                Artist =("Door " + keyData + "  ");
                               }
                                if (key == "Datum en tijd - oorspronkelijk") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                var phoTime = keyData;
                                var dateArray1 = phoTime.split(" ", 2);
                                phoTime = dateArray1[0];
                                phoHour = dateArray1[1];
                                var dateArray2 = phoTime.split(":");
                                var monthsArray = ["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","October ","November","December"];
                                phoTime = monthsArray[dateArray2[1]-1]+" " + dateArray2[2]+ ", " + dateArray2[0] +" @ " + phoHour;
                                var picYr = dateArray2[0];
                               }
                               if (key == "Model") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                Model = (keyData + "  ");
                               }
                               if (key == "Maximumwaarde lensopening") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                maxF = ("maxF " + keyData + " ");
                                maxF = ( keyData + " ");
                               }
                               if (key == "Brandpuntsafstand bij 35 mm-film") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                focLength = ("@ " +keyData + "  ");
                               }
                               if (key == "Belichtingsprogramma") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                expPgm = (keyData + "  ");
                                if (expPgm == "Niet gedefinieerd") { expPgm = "Belichtingsprogramma  niet opgenomen  "; }
                               }
                               if (key == "Belichting - waarde afwijking") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                expCmp = ("Bias " + keyData + "  ");
                               }
                               if (key == "Meetmodus") {
                                //alert ("Key=" + key + " Data=" + keyData );
                                mtrMode = (keyData + " Meting  ");
                               }
                               if (key == "Witbalans") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                wbMode = ("Witbalans " + keyData + "  ");
                               }
                               if (key == "Snelheidscijfers ISO") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                ISO = ("ISO " + keyData + "  ");
                                remISO = keyData;
                               }
                               if (key == "Belichtingstijd") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                expTime = ("Tv " + keyData + "  ");
                                remShutter = keyData;
                               }
                               if (key == "F-Stop") {
                                //alert ("Key=" + key + " Data=" + keyData );
                                Fstop = ("Av " + keyData + "  ");
                                remAperture = keyData;
                               }
                               if (key == "Flits") {
                                // alert ("Key=" + key + " Data=" + keyData );
                                var flshCode = keyData;
                                var flshMode = "Flash Code=" + flshCode + "  ";
                                if(flshCode==1){var flshMode = "Flits   ";}
                                if(flshCode==9){var flshMode = "Flits   ";}
                                if(flshCode==25){var flshMode = "Flits   ";}
                                if(flshCode==89){var flshMode = "Flits   ";}
                                if(flshCode==0){var flshMode = "zonder Flits   ";}
                                if(flshCode==16){var flshMode = "zonder  Flits   ";}
                                if(flshCode==88){var flshMode = "zonder  Flits   ";}
                               }
                              }


                              /* Copyright Year(s) */
                              var thisYr, toDay 
                              var toDay = new Date();
                              var thisYr = toDay.getYear() + 1900;
                              if(picYr!="" && thisYr!=""){ var cpyrt =  picYr + "-" + thisYr + "  ";}
                              if(picYr=="" && thisYr!=""){ var cpyrt =  thisYr + "  ";}
                              if(picYr==thisYr){ var cpyrt =  thisYr + "  ";}
                              /* For cameras that don't set Artist or set unknown in the Exif substitute Owner if set */
                              if(Artist=="" && Owner!=""){var Artist = "Door  " + Owner + "   ";}
                              if(Artist=="Door Onbekende  " && Owner!=""){var Artist = "Door  " + Owner + "   ";}
                              /*  Lens info  */
                              xml = app.activeDocument.xmpMetadata.rawData;
                              lensOffset = xml.indexOf("<aux:Lens>") + "<aux:Lens>".length;
                              if(lensOffset > 0) {
                               lens = xml.substr(lensOffset, xml.length - lensOffset);
                               lens = lens.substr(0,lens.indexOf("</aux:Lens>"));
                              }
                              /* Hack for my cameras with fixed lens */
                              if(lens=="" && Model=="E990  "){var lens = "9-28mm";}
                              if(lens=="" && Model=="E-20,E-20N,E-20P  "){var lens = "9-36mm";}
                              if(lens=="" && Model=="E-10  "){var lens = "9-36mm";}
                              if(lens=="" && Model=="E-10          "){
                               var Model = "E-10  ";
                               var lens = "9-36mm";
                              }
                              if(lens=="" && Model=="Canon PowerShot SD700 IS  "){var lens = "5.8-23.2mm";}
                              if(lens!=""){var lens = lens + "  ";}
                              else {var lens = "Onbekende Lens  ";}
                              /* Hack for my ultra compact cameras program mode not recorded */
                              if(Model=="Canon PowerShot SD700 IS  "){var expPgm = "Ultra Compact Camera  ";}

                              //alert (remShutter + " " + remAperture + " " + remISO);
                                            ev = calcEV(remShutter, remAperture, remISO);


                            /* ---------------------------------- END Extracting Data I want to Stamp  formated -------------------------------------------------- */
                              
                              //}
                            }
                            catch (e){
                              alert("No EXIF data exists..." );
                            }


                            if ( exifInfo == "" ) {
                              alert( "No EXIF data exists..." );
                            }
                            else {
                              // alert( "exifInfo=" + exifInfo );

                              text_layer = doc.artLayers.add();      // Add a Layer
                              text_layer.name = "EXIF Stamp";       // Name Layer
                              text_layer.kind = LayerKind.TEXT;      // Make Layer a Text Layer
                              text_layer.textItem.color = textColor;      // set text layer color

                            /* Do not set TextType to Pargarph Text for StampEXIF so action can position text layer
                               text_layer.textItem.kind = TextType.PARAGRAPHTEXT;    // Set text layers text type
                            */

                              text_layer.textItem.font = fontName;      // set text font
                              text_layer.blendMode = BlendMode.NORMAL      // blend mode
                              text_layer.textItem.fauxBold = false;      // Bold
                              text_layer.textItem.fauxItalic = false;      // Italic
                              text_layer.textItem.underline = UnderlineType.UNDERLINEOFF;   // Underlibn
                              text_layer.textItem.capitalization = TextCase.NORMAL;    // Case
                              text_layer.textItem.antiAliasMethod = AntiAlias.SHARP;    // antiAlias

                            //  var fontSize = Math.round((doc.height- textY) / ((numExifItems +1) * sizeFactor)); // Calulate font size to use Item nomber + last \r
                              /* Calulate font size to use for StampExit keep size same for landscape and portrait base on document size */
                              if (doc.width >= doc.height) {var fontSize = Math.round(doc.height / (30 * sizeFactor));}
                              else {var fontSize = Math.round(doc.width / (30 * sizeFactor));}
                              if (fontSize<10){fontSize=10};       // don't use Font size smaller then 10
                              text_layer.textItem.size = fontSize;      // set text font Size

                            //  text_layer.textItem.position = Array(textX, textY );    // set text layers position in and down
                              text_layer.textItem.position = Array(textX, (textY + fontSize ));  // set text layers position in and down for Stamp add in fontsize

                              textWidth = ((doc.width - textX) * 72/testres );    // Text width document width - offset
                              textHeight = ((doc.height - textY) * 72/testres );    // Text height document height - offset
                            /* Do not set Text Area for StampEXIF so action can position text layer
                              text_layer.textItem.width = textWidth;      // set text area width
                              text_layer.textItem.height = textHeight;     // set text area height
                            */

                            /*
                               alert(
                              "res=" + res + " sizeFactor=" + sizeFactor + " numExifItems=" + numExifItems
                              + "\r" + "fontsize=" + fontSize + " font=" +fontName
                              + "\r" + "Image area width=" + doc.width + " height=" + doc.height
                              + "\r" + "text area width=" + textWidth + " height=" + textHeight
                              + "\r" + "Text Position top left=" + textX + "," + textY
                              + " bottom right=" + (textX + textWidth )+ "," + (textY +  textHeight )
                              );
                            */

                            /*
                              try{
                               text_layer.textItem.contents = exifInfo;
                              }
                              catch (er) {
                               alert("Error Setting Contents...");
                              }
                            */

                            /* -----------------------------------------  Data Stamp  format ----------------------------------------------------------------------- */
                              if (!app.activeDocument.info.copyrightNotice=="") {var Notice = app.activeDocument.info.copyrightNotice; }
                              else { var Notice = "Copyright \u00A9 " + Biz  + " " + cpyrt; }
                              text_layer.textItem.contents =  "Afbeelding  " + docName + "  " + Notice
                              + "\r" + Artist + phoTime
                              + "\r" + Model  + lens + maxF + focLength
                              + "\r" + expPgm + expCmp + mtrMode + ev
                              + "\r" + wbMode + ISO  + expTime + Fstop + flshMode;

                              if (app.activeDocument.info.instructions == "" ) {
                               app.activeDocument.info.instructions = "Afbeelding  " + docName + "  Copyright \u00A9 " + Biz + " " + cpyrt
                               + "\r" + Artist + phoTime
                               + "\r" + Model  + lens + maxF + focLength
                               + "\r" + expPgm + expCmp + mtrMode + ev
                               + "\r" + wbMode + ISO  + expTime + Fstop + flshMode;
                              }

                            }

                            if(res != testres){ app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.v alue,res); }

                            app.preferences.rulerUnits = strtRulerUnits;
                            app.preferences.typeUnits = strtTypeUnits;

                            }
                            ///////////////////////////////////////////////////////////////////////////////
                            // END - main function
                            ///////////////////////////////////////////////////////////////////////////////

                            // -----------------------------------------
                            // calcEV()
                            // -----------------------------------------
                            function calcEV(shutter, aperture, iso) {
                            evString = new String("");
                            isoValue = new Number(0);
                            shutterValue = new Number(0);
                            apertureValue = new Number(0);
                            evValue = new Number(0);
                            apertureValue = aperture;
                            apertureValue = apertureValue.substr(2,apertureValue.length -2); // Strip off "f/"
                            shutterValue = shutter;
                            shutterValue = shutterValue.substr(0,shutterValue.indexOf(" ")); // Strip off ending " sec"
                            if ( shutterValue.indexOf("/") != -1) {
                              topShutter = shutterValue.substr(0,shutterValue.indexOf("/"));
                              bottomShutter = shutterValue.substr(shutterValue.indexOf("/") + 1,shutterValue.length -(shutterValue.indexOf("/") + 1));
                              shutterValue = topShutter / bottomShutter;
                            }
                            isoValue = iso;
                            //alert ("apertureValue = " + apertureValue +  " shutterValue = " + shutterValue + " isoValue = " + isoValue );
                            if (isoValue>0 && shutterValue>0 && apertureValue>0) {
                              evValue = Math.LOG2E * Math.log(Math.pow(apertureValue, 2) * (1 / shutterValue) * (100 / isoValue));
                              evValue = Math.round(evValue * 10) / 10;
                              evString = "EV " + evValue;
                            }
                            return evString;;
                            }

                            function checkThisItem(key, keyData) {
                            // alert("Key=" + key + " Data=" + keyData );

                            }

                             

                             

                            • 12. Re: how put exif data on a photo?
                              kellybellis Level 1

                              @ JJMack

                               

                              I'm trying your script, but am stumped:

                               

                              parser not found.PNG

                              Thanks for any hints.

                               

                              Kelly

                              • 13. Re: how put exif data on a photo?
                                JJMack Most Valuable Participant

                                Kelly

                                 

                                What are you doing? A Javascript file is not an image file. Photoshop Place feature is for images. Photoshop script written in Javascript have the extension .js or .jsx.  These files can run from anywhere on you system and are used either in actions or through Photoshop menu File>Scripts>.... .  While they can be anywhere they are most often copied into Photoshop versions folder Presets\Scripts\ so the can be accessed from Photoshop scripts list. If they are not somehow in Photoshop scripts tree you need to navigate to the script using Photoshop menu File>Scripts>Browse where you navigate to the script you want to use in Photoshop.   I create my own scripts tree and link Photoshop Versions Presets\Scripts\ to my script tree.  When Photoshop initializes it create a list of all scripts in its scripts tree for its menu File>Scripts>Scripts List.   You can group script together however groups have no labels and can not be collapsed.  If you have many Photoshop scripts its not ease to use the listfor it can only be scrolled one item at a time.

                                • 14. Re: how put exif data on a photo?
                                  kellybellis Level 1

                                  Thank you very much for the reply.

                                   

                                  As for what am I doing - I thought that I was following your directions stated above:

                                   

                                  http://forums.adobe.com/message/5603082#5603082

                                  "I just did a copy paste of that script I posted. saved it as test.jsx on my desktop. Open at raw file in CS6. added a black fill layer on top and then droped test.jsx from my desktop onto to CS6 this it what it produced."

                                   

                                  Obviously I failed to understand... but I thank you for the effort.

                                   

                                  In an extended answer to your question, I found the matter of successfully stamping each and every image with selected Exif data and through a batch process afforded quite nicely with Irfan.

                                   

                                  Thanks again for your kind reply.

                                   

                                  Kelly

                                   

                                  stamped IMG_0743.jpg

                                  • 15. Re: how put exif data on a photo?
                                    JJMack Most Valuable Participant

                                    You can not drop a script onto Photoshop. Photoshop will handle some non image file that are associated with Photoshop. Like .atn files will be loaded into your Actions Palette. Other Photoshop files like Layer styles, Patterns, Brushes etc will also loaded into their approbate palettes.  JSX file are not associated with Photoshop they are associated with Adobe's ExtendScript Toolkit.  ExtendScript Toolkit knows how to process and work on jsx files.

                                     

                                    Photoshop can use .jsx scripts files however it can not open and edit a script file.  In your case with it being on your desktop  you would use Photoshop menu File>Scripts>Browse and select the script file on your desktop. This could be recorded into an action and batched for groups of image files.

                                    • 16. Re: how put exif data on a photo?
                                      kellybellis Level 1

                                      Hi JJMack,

                                       

                                      I have been studing your script and was curious if there are any documents explaining how best to interact with it - is there an interface or must one learn a little about scripting language in order to have it perform as desired?

                                       

                                      In any event, I'm interested in giving it a try

                                       

                                      Thank you very much.

                                       

                                      Kelly

                                      • 17. Re: how put exif data on a photo?
                                        JJMack Most Valuable Participant

                                        I wrote the StampExif script to Format Exif the way I wanted it displayed.  However I did make if available and tried to comment it and make it a little customizable.  There are three areas that you may want to change.

                                         

                                         

                                        First area.

                                        In the beginning of the script there are some variable you  can set to customize the script somewhat.

                                         

                                                  /* Variables You can hard code your business owner here */

                                                  var Biz = "Mouseprints";

                                                  var Owner = "John J McAssey";

                                                /*  sizeFactor influences text size 1 will use largest font 2 will half that font size          */

                                                  var sizeFactor = 1;

                                                /* textX and TextY positions text placement 0 and 0 Top Left corner of image in pixels          */

                                                  var textX = 0;

                                                  var textY = 0;

                                                  /* Internal Photoshop Text name                                                                                */

                                                var fontName = "ArialMT";

                                                  var fontName = "TimesNewRomanPSMT";

                                                  var fontName = "Tahoma";

                                                  /* Text Color                                                                                                     */

                                                  textColor = new SolidColor;

                                                  textColor.rgb.red = 255;

                                                  textColor.rgb.green = 255;

                                                  textColor.rgb.blue = 255;

                                                  /* END Variables You can hard code your business owner here */

                                         

                                         

                                        Some Cameras set Artist in their Exif if you use the camera maker utility to record something like your name into your Cameras. If You have done that then It will be used in the Displayed formatted exif information. It not the variable Owner will be used. If you do not set that in the script Unknown will be displayed in the formatted EXIF. If there is a copyright notice in the image file metadata the will override Biz. The rest of the Variable need no additional description.

                                         

                                        Second Area

                                        Camera makers do not store whet lens was used in the EXIF data. That is optional. However they do store that in camera maker metadata fields.  And if you use ACR the lens uses will be stored in Adobe Aux EXIF information.

                                        Point and shoot Cameras have fixed lenses and lenses information is not in metadata.  I try to get the lens information from Aux exif info and for me fixed lens camera =s Oly E-10 and E-20, A canon point and shoot and a Nikon 990. I added code to supply lens information.  Exif data does store Focal length used. You may have notice in the example I Posted I used a my canon 180mm 3.5 macro lens however the max fstop displayed is 4.5 I use a 1.4TC the focal length use is 252mm. If you wish to add support for your fixed lens cameras look for this hack

                                         



                                        /* Hack for my cameras with fixed lens */


                                        if(lens=="" && Model=="E990  "){var lens = "9-28mm";}


                                        if(lens=="" && Model=="E-20,E-20N,E-20P  "){var lens = "9-36mm";}


                                        if(lens=="" && Model=="E-10  "){var lens = "9-36mm";}


                                        if(lens=="" && Model=="E-10          "){



                                        var Model = "E-10  ";



                                        var lens = "9-36mm";


                                        }


                                        if(lens=="" && Model=="Canon PowerShot SD700 IS  "){var lens = "5.8-23.2mm";}


                                        if(lens!=""){var lens = lens + "  ";}


                                        else {var lens = "Unknown Lens  ";}

                                         

                                         

                                        The third area is the format of the EXIF data Displayed.

                                        I extract the EXIOF field I'm interested and calculate EV etc.This makes formatting the EXIF Text manageably.  It relatively easy to format the exif data the way you would like it formatted. I also put that into the image file instruction it the field is empty.

                                         

                                        Look for this section if you wish to change the formatting of the stamp.

                                         

                                        /* -----------------------------------------  Data Stamp  format ----------------------------------------------------------------------- */

                                                            if (!app.activeDocument.info.copyrightNotice=="") {var Notice = app.activeDocument.info.copyrightNotice; }

                                                            else { var Notice = "Copyright \u00A9 " + Biz  + " " + cpyrt; }

                                                            text_layer.textItem.contents =  "Picture  " + docName + "  " + Notice

                                                            + "\r" + Artist + phoTime

                                                            + "\r" + Model  + lens + maxF + focLength

                                                            + "\r" + expPgm + expCmp + mtrMode + ev

                                                            + "\r" + wbMode + ISO  + expTime + Fstop + flshMode;

                                         

                                         

                                                            if (app.activeDocument.info.instructions == "" ) {

                                                                      app.activeDocument.info.instructions = "Picture  " + docName + "  Copyright \u00A9 " + Biz + " " + cpyrt

                                                                      + "\r" + Artist + phoTime

                                                                      + "\r" + Model  + lens + maxF + focLength

                                                                      + "\r" + expPgm + expCmp + mtrMode + ev

                                                                      + "\r" + wbMode + ISO  + expTime + Fstop + flshMode;

                                                            }

                                        • 18. Re: how put exif data on a photo?
                                          bdleeuw

                                          Hi there,

                                          When I use the script I'm only getting this:

                                           

                                          Picture  IMG_5691.tiff  Copyright ©  2014 

                                          Canon EOS 70D  Tamron 90mm f/2.8 


                                          How do I get my shutter speed and all the other exif info?

                                          I was pasting the other script into the original but I get an error on line 73..


                                          Thanks,

                                          Bertus.