Quickly retrieve the Exif metadata

I have a script for Photoshop CC 2014 that makes some calculations of exposure based on the Exif metadata in the files value (EV) camera raw and then adjusts the exposure of the image to the EV of the target.  I know that this information is quickly available in Bridge, but when I try to get the metadata in Photoshop, I use the document.open(), and command that opens the file (which takes a lot of time) instead of simply grasp the Exif metadata.  I can get it quickly in a bridge script, but I'm having a hard time incorporating this kind of things in a targeted Photoshop script (the stuff of BridgeTalk is a bit confusing to me, or it does not work on my computer).

I also tried to use "bridge.executeScript ()", but the subject of bridge apparently is not available for targeting Photoshop scripts (otherwise something is inconsistent with my installation).  Bridge is available in targeted only Bridge scripts.

Here's how it works in Photoshop scripts (I include only the party concerned).

for (var nfile = start; nfile < nstop; nfile ++) {}
var Name = File(testListing[nfile]).name.replace (/ \.) [ ^\.] +$/, '');
var file = File (testListing [nfile] .path + "/" + name + ".") JPG');
If (file.exists) {}
App.Open (file);
}
else {}
App.Open (testListing [nfile]);
}
var DocInfo = app.activeDocument.info;
app.activeDocument = var docRef
EV [nfile] = CalcEV (DocInfo, BaseISO);
app.activeDocument.close (SaveOptions.DONOTSAVECHANGES);
}

(FYI, I use the jpeg file if it's there because Photoshop reads the exif data for this file more quickly that it made from the raw file)

Here's how it works in scripts Bridge:

firstfile = ' 7A7A5842. CR2 ";

LastFile = ' 7A7A5843. CR2 ";

var ExifProperty = "exif:DateTimeOriginal";

var ExifNamespace = ' http://ns.adobe.com/exif/1.0/';

app.document.deselectAll ();

app.document.selectAll ();

var myThumbs = app.document.getSelection ("cr2");

var fstart = - 999;

var fend = - 999;

for (var n = 0; n < myThumbs.length; n ++) {}

If (myThumbs [n] .name == firstfile) fstart = n;

If (myThumbs [n] .name == lastfile) fend = n;

}

var %NUMFILES = myThumbs.length;

var fileThumbs = myThumbs.slice(fstart,fend);

FLEN = to fend fstart + 1;

var EVarray = new Array (flen);

for (var n = 0; n < fileThumbs.length; n ++) {}

var md = .metadata fileThumbs [n];

ISO = md.read(ExifNamespace,'exif:ISOSpeedRatings');

SS_string = md.read(ExifNamespace,'exif:ExposureTime');

var test = SS_string.split("/");

ShutterSpeed = test [0] / test [1];

var Aperture_string = md.read(ExifNamespace,'exif:FNumber');

If (Aperture_string == ") {}

var opening is Number (1.4);. assume Samyang at f1.4

}

else {}

var test = Aperture_string.split("/");

Opening test [0] = / test [1];

}

var ISOadjust = Number(1.);

EVarray [n] = Math.log(Math.pow(Aperture,2)/(ShutterSpeed*ISOadjust)) Math.LN2;

$.writeln ('ISO', ISO, "SS", SS, 'Av,' opening 'Is EV', EVarray [n]);

}

app.document.deselectAll ();

'Done... '. » ;

This example works for me with CS6 (don't have CC)

Create a folder "test" on the desktop and put some cr2 files in the folder and try the following script.

#target photoshop;
main();
function main(){
var bt = new BridgeTalk();
bt.target = "bridge";
bt.body = "var ftn = " + getInfoFromBridge.toSource() + "; ftn();";
bt.onResult = function( info ) { processInfo(eval( info.body ));}
bt.send(10);
};
function processInfo(info){
//do whatever to data
alert(info.join('\n'));
};

function getInfoFromBridge(){
var Info = [];
app.document.thumbnail = Folder("~/desktop/test");
app.document.deselectAll();
var thumbs = app.document.getSelection("cr2");
for(var a in thumbs){
var t = new Thumbnail(thumbs[a]);
var md = t.synchronousMetadata;
Info.push([[thumbs[a].name],[md.read( "http://ns.adobe.com/exif/1.0/","exif:FNumber")]]);
}
return Info.toSource();
};

Tags: Photoshop

Similar Questions

  • There the rest APIs to retrieve the metadata for entity for eloqua objects?

    There is a list of all the objects that are accessible by the REST for CRUD in this link: REST API - Documentation for kernel objects in the objects of the core section.

    For each of the objects listed in the objects of the core section are there is a metadata field in the Properties section.

    For example, for the purpose of the e-mail message, The REST API - to access Emails , under the Properties section, there entered corresponding to the fields of the object of the emails under the
    Name, Type, Description and validation topics.

    Is there a REST API to retrieve the same information, i.e. metadata field for an object programmatically eloqua?
    Otherwise, this is a serious obstacle to building systems that are the metadata engine and support for SOAP is removed...

    The closest to what you are looking for would be endpoints of assistance for a description of the fields. Example of /api/bulk/1.0/contact/fields

    {

    "items": [{}

    'name': "E-mail address",

    "internalName": "C_EmailAddress",

    'dataType': 'emailAddress;

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': true,

    'Déclaration': '{{Contact.Field (C_EmailAddress)}}.

    "uri": "/ contact/field/100001",

    "converted': ' / Date (-2208970800000) /"

    'updatedAt': ' / Date (-2208970800000) / ".

    },

    {

    'name': "First name",

    "internalName": "C_FirstName",

    'dataType': "string",.

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': false,

    'Déclaration': '{{Contact.Field (C_FirstName)}}.

    "uri": "/ contact/field/100002."

    "converted': ' / Date (-2208970800000) /"

    "updatedBy": "MgrzzzOracleCloudSupportP01E10",

    'updatedAt': ' / Date (1408993722380) / ".

    },.....

    If so, it will also include an element "defaultValue". How many characters you can store in a field (precision) is documented here: Type of data (data and Digital Formats). The same endpoint exist in bulk 2.0, and there are variants for the account fields and Objetpersonnalise. Another exists in the REST through Api/rest/2.0/assets/contact/fields?depth=complete... It does not include the declaration of ML, but there other useful information such as the type of default update and a flag 'isAccountLinkageField '.

    Similarly, if you describe a form via SOAP or REST, it also will give you the fields and their type.

    Kind regards

    Bojan

  • The EXIF data (or metadata) can be manipulated in LR?

    The EXIF data (or metadata) can be manipulated in LR?

    Essentially LR does not have EXIF data, there are a few exceptions, you can for example change the date in the EXIF, EXIF data are part of the original file and LR is none destructive and does not make any changes to the original file, with this exception. If you really want to change the EXIF data, you will need to do it outside of LR by using an EXIF Editor.  Regarding the other metadata goes, that's exactly what LR did. It will read and write metadata in its catalog and file or a file in the case of propitiatory RAW formats. He writes these metadata in xmp format.

  • Can I retrieve the metadata only of essbase or planning?

    Hello!
    Can I retrieve the metadata only for essbase or planning? If I planning, how can I do it? And why, when I extracted the metadata of essbase, it retrieves members who are never share in store? He always put (stored) S.

    Thanks in advance.

    Good bye

    Hello

    Which version you use, I don't know who had a bug in early versions of ODI.
    Make sure that you are on version 10.1.3.5

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Retrieve the metadata for a column in a view

    Hello

    I can see how it is possible to retrieve the details of all the columns of a table by querying the views sys.tables and sys.columns . Is there a similar way to retrieve the details of all columns in a view?

    Thank you
    Ben

    I am not afraid. Currently, TimesTen code to display information in an internal proprietary format in the system catalogs.

    I'm sorry.

    Chris

  • Retrieve the Plugins from metadata

    Is it possible to export plugins (similar to how retrieve datasets?) of the OIM 11 g?

    I am currently looking at trying to change the following plugin:

    oracle.iam.identity.usermgmt.impl.plugins.FirstInitialLastNamePolicy

    While on top of generation of a username with a first initial + last name, it will also add a number with 2 digits on the end, check that it is not exist (otherwise, increment the number to try and check again until the success) and then submit.

    Is it possible to retrieve the policy above so that I can look at the java code, they used to get this functionality?

    You will find this class on:

    $OIM_ORACLE_HOME/server/apps/oim.ear/APP-INF/lib/OIMServer.jar

  • DJI devices are not not in the filter metadata "Cameras".

    I have the current version of Lightroom 5 running on OSX 10.11.4.

    I imported dozens of images and videos on both my Osmo DJI and DJI Phantom 4 SD cards, via a card reader and yet neither are listed in the filter metadata under the list of cameras - or lenses.

    Videos and images are instead listed under "unknown Camera".

    How can I tell Lightroom about these missing cameras?

    Jpg they appear not as 'DJI Osmo' and 'DJI Phantom' but as 'HG310' and 'FC330' respectively. I'm wondering now if there is a way to change this so that they appear with the correct model numbers - or what I need to change the metadata of every time I do an import?

    These are the names of the models that DJI has chosen to incorporate into metadata, for example

    [EXIF]          Make                            : DJI
    [EXIF]          Camera Model Name               : FC330
    

    A quick Google search reveals this is how people refer to specific models.   If you don't remember the model number, just filter on the brand ("DJI") and you will see the available model numbers.

  • In Photos, I changed the date, title and information on the location of the images of a slide digitizing company.  I want to preserve the custom metadata and the original resolution of 2500 dpi in a file backup, but when I export it loses my metadata chan

    Using version 1.3 of Photos, I edited the metadata about the images, I received a business of digitization of slides to insert the first day of the slide, the location, a title and a keyword.  I want to archive these images with the original resolution of 2500 dpi, but when I export original unmodified, it does not preserve information.  When I export by choosing export as XMP IPTC, I can't read the XMP file to see if there are my revisions.

    When I export using the 'Export # photo (s)' choice, I can use the previews/tools/Inspector/iptc and see my changes.  But this photo has only 72 dpi.

    Is there a way to preserve this modification of metadata information in the original not modified?  Alternatively, this file has XMP I exported the info?  If so, how can I read it?  And that would mean I need to export both the original unmodified and the XMP file to my files from archive?

    Don't know what you want - well there is a CIO field in the EXIF fields it is meaningless as DPI is not a setting but the result of a math problem third grade - points by (divided by) inches until you add inches per impression you have no IPR - and when you add inches the DPI for printing are determined by calculating not by any setting

    For more information, see http://www.rideau-info.com/photos/mythdpi.html

    A 1200 x 1800 pixels picture printed as a 4'x 6' printing is 300 DPI bit matter what setting the EXIF says

    LN

  • DeskJet 3050 J610a: We could not retrieve the list of drivers for your product (3050 J610a)

    I have the HP Deskjet 3050 J610a. Printer worked fine on my machine Win 8.1. Just got reimagee to the same machine (Win 8.1) and had to reload my drivers for the printer. Site displays the following message when I select 3050 J610a with Windows OS. I can't add the printer to the computer as pilot given result is not available... was here last year.

    Anyone has a suggestion. My other computer on Win 10 works and driver is available.

    We were able to retrieve the list of drivers for your product.  Please select the desired operating system and select "Update" for a new attempt

    Hello

    It is still there:

    http://ftp.HP.com/pub/softlib/software12/COL34584/al-109394-3/DJ3050_J610_1315-1.exe

    A quick victory is first install it on your computer. Please download and install on your machine.

    Kind regards.

  • Edit the EXIF tags?

    I'm working on a simple EXIF viewer/editor.

    I think we can use these to read EXIF tags:

    http://developer.BlackBerry.com/native/reference/BB10/com.QNX.doc.camera.lib_ref/topic/camera_meta_g...

    But how to re - write the values of these tags?

    in this case, do not look at the camera API.

    libexif is available on the platform, then I suggest you want just for examples.

    I have here a sample by libexif to detect whether the flash was fired in photo:

    https://github.com/BlackBerry/presentations/tree/master/2012-BlackBerryJam-Americas/JAM15/FlashPhoto

    This example uses the camera API to locate a photo EXIF metadata before it is saved to the disk, but I could just as easily use the functions of libexif to locate the EXIF data inside the JPEG buffer.

    The reason why a separate plea exists thanks to the camera what API for this is so that we can support the metadata in uncompressed images that perhaps has no standard mechanism to encapsulate metadata.

    See you soon,.

    Sean

  • Is it possible, using ExtendScript, to retrieve the name of a model used in first

    I have an AE Comp used in first instance.  I'm looking for a way to quickly manage the names of the AE model and this model used in the first instance.  The goal is to maintain naming conventions as efficiently and accurately as possible.  I was wondering if there is a way, using ExtendScript (a command in a custom panel) to retrieve the name AE Comp of her in first instance.

    Any projectItem with a path ending with .aep is a likely candidate.

    Our next version provides iteration better the elements in a sequence; You can reach the projectItem of any clip, that should give you what you need.

  • Modify the Exif data

    Hello world!
    I'm having some trouble surrounding the metadata on some images in my library of images.

    I just started working at a new company and their library of images is a mess. I worked on the automation of a project I've worked on, but so that it works properly, I need to access the metadata for the images that I work with.


    Here's the problem; Many of their images have the date stored in the tab 'base' in 'File Info', but they don't have anything in the exif data. Is their no way to automate Photoshop or bridge (or possibly Automator or Applescript) to fill in the exif data based on the "Date of creation" of in the Basic tab?

    I am at a loss here, there are more than 30,000 images to treat so typing manually for each image is not really an option (I really hope that I am not obliged)

    I really appreciate any help and suggestions.

    Thank you all!

    -Jeremy

    I downloaded the script you need to be connected and put it here for you...

    Wikisend: free file-sharing service

  • How to retrieve the value of a custom field

    Hello @all.

    In my vCenter, I created a custom field 'email '. The value of this field is set to the e-mail address of the operator of that belongs to a virtual machine.

    I would like to retrieve these values in a perl script. But I have found a method to set the values of the custom fields. For example:

    $CustomFieldsManager -> SetField(entity => $_, key=> $emailKey, value => "[email protected]");
    

    What should I do to retrieve the value of the $emailKey key? Could someone provide a quick and dirty-snippet, please?

    Best regards

    Trondesson

    of course, in this discussion https://communities.vmware.com/message/1512863#1512863 you can see how it's done

  • LR does not update changed the EXIF data

    I imported a bunch of photos of LR and subsequently added to GPS information for raw files using Canon card utility. The GPS info is there (I checked in the dialog box information on the file in the Finder), but LR doesn't! I don't mind reimport the files to get the GPS data that is recognized, but it seems that the only way to do is to remove the images from the catalog, which means losing the settings that I already had on them. Y at - it an option to update the EXIF data in LR without this drastic measure?

    Then select one of the photos to which you've added the GPS data and make metadata > read metadata file.   This will read the metadata to raw files in the LR catalog without losing your changes. but any changes you have made in metadata in LR - words - keys, legend, - will be lost.

    Going further, why not use module card LR instead?

    In addition, if you have never metadata > save metadata to file, or your turn on the option changes automatically write in XMP, then for these photos, LR metadata read/write from sidecar .xmp file (a file with the same base name of that image, but with the .xmp extension), rather than the file raw itself.

    In addition, many people are also wary of editing raw files, because each manufacturer has its own format owner (so the reason of .xmp sidecar).  In your case, no doubt you use utility of Canon to change the Canon raw files, while the risk is mitigated.

  • Failed to retrieve the target data system for FDM 11.1.2.3 HFM adapter

    Hello gurus,

    : Server 1 HFM

    : Server 2 FDM

    Server 3: Database server

    1. I have managed to create an application of FDM using FDM web client.

    2. later I imported the FDM adapter - FM11X-G6-C in the Workbench of FDM and also saved the file fdmFM11XG6C.dll successfully.

    3. We then defined the Machine profile and also specified with the custom sizes available in our HFM application.

    4. we have then configured the adapter with success.

    5. we get the following question when browse us the metadata -> control tables

    Cannot retrieve the data on the target system

    6 log has the following entry

    Error:

    Code...-2147220966

    Description... System.Runtime.InteropServices.COMException (0x8004021A):

    {0F677127-F815-4495-8290-AF2899C9482F}1-2147220966010/16/2013 07:41:57< servername FDM >CHsxClient.cpp282011.1.2.3.000.4045Unknown error

    at HSXCLIENTLib.HsxClientClass.OpenApplication (String bstrClusterName, String bstrProduct, String bstrApp, ppIUnkServer, & object object & ppIUnkSession)

    at fdmFM11XG6C.clsHFMadapter.fConnect)

    Process... clsFMAdapter.fConnect

    Component... D:\FM11X-G6-C_1002\AdapterComponents\fdmFM11XG6C\fdmFM11XG6C.dll

    Version... 1116

    Identification:

    ... The admin user

    ... Computer name < servername FDM >

    Connection of FINANCIAL MANAGEMENT:

    Name of the application...

    Name of the cluster...

    Field...

    Connect status... No open connection

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:57] *.

    -------------------------------------------------------------

    ERROR:

    Code............................................. 10054

    Description... Adapter function [fConnect] failed.

    Process... clsBlockProcessor.DimensionList

    The component... upsWBlockProcessorDM

    Version.......................................... 1112

    Thread........................................... 80304

    IDENTIFICATION:

    User............................................. admin

    ... Computer name < servername FDM >

    Name of the application... < name of application of FDM >

    Client App....................................... WebClient

    CONNECTION:

    Provider......................................... SQLOLEDB

    Server data... < database server name >

    Name of database < database name >

    Trust connect... Fake

    Connect status... Open connection

    GLOBALS:

    Location......................................... Sample

    Location ID... 748

    Location Seg... 2

    Category......................................... WLCat

    ID of the category... 12

    Period........................................... Oct - 2013

    Period ID........................................ 10/31/2013

    POV Local........................................ Fake

    Language......................................... 1033

    User Level....................................... 1

    All Partitions... True

    Is Auditor....................................... Fake

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:58] *.

    -------------------------------------------------------------

    ERROR:

    Code...-2146818234

    Description... Adapter function [fConnect] failed.

    Procedure........................................ ObjScriptReturnMarshaler.GetDimensionList

    Any help will be much appreciated.

    Thank you all for your help...

    It was a problem with the Machine profile configuration, where I had updated the username and password and it had to remain a Virgin.

    Keep the username blank password in the configuration of the machine profile has solved the problem.

Maybe you are looking for