Need help to extract the Exif data

I can't wrap my brain on how to get an individual item in a generated table. Here's what I'm trying to do: I have a script that will read all the information of an image file's exif header. It traverses the list and display each element exif very well. If I keep stuck trying to extract specific items such as copyright, artist, and description. I took the script out of the php.net site and I understand well enough how it works completely.

Can someone break it down by the measures taken by the script? I think that if I understood it better that I could figure out how to get what I need. For example, should I loop through the $exif table before I can point to the specific exif info I want? I also don't understand the exif_read_data() function parameters (I read what php.net, but it is clear to me).

Thanks in advance for any help.
Mike D

I finally got. The code in the previous post works as what. I had the wrong variable in the "alt" tags It should have been $image_description. Problem solved.

Tags: Dreamweaver

Similar Questions

  • Need help to extract the data into a string of separate brackets

    Hello

    I have a scenario where I have to extract data into a string that is enclosed in [].

    Here's what I want to do...

    entry:

    [name_first] [name_mi] [name_last]

    required output: this must return all data that are placed between square brackets.
    name_first
    name_mi
    name_last

    I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.

    Thanks in advance.

    Hello

    You can use SUBSTR and INSTR
    This should work in Oracle 9:

    WITH     cntr     AS
    (
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= 3
    )
    ,     got_pos          AS
    (
         SELECT     x.txt
         ,     c.n
         ,     INSTR (x.txt, '[', 1, c.n)     AS l_pos
         ,     INSTR (x.txt, ']', 1, c.n)     AS r_pos
         FROM           table_x  x
         CROSS JOIN    cntr     c
    )
    SELECT        txt
    ,        n
    ,        SUBSTR ( txt
                   , l_pos + 1
                , r_pos - (l_pos + 1)
                   )     AS sub_txt
    FROM        got_pos
    ORDER BY   txt
    ,             n
    ;
    

    Sorry, I don't have an Oracle 9 database now; I had to test this in Oracle 10.

    jimmy437 wrote:
    ... I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.

    It's true. Regular expressions are very useful, but they are not available in Oracle 9 (or earlier).
    Oracle 9 has a package supplied by Oracle, OWA_PATTERN, which provides regular expression features:
    http://docs.Oracle.com/CD/B12037_01/AppDev.101/b10802/w_patt.htm
    I know it's the Oracle 10, documentation, but there are in Oracle 9, too.

    Oracle 9 is very old. You should consider the upgrade.

  • Test and validate the Exif data

    Very well. A case of beer for the first person to get it (to come to Johannesburg for do it well!)

    I must write an application that allows to extract the EXIF data for photos uploaded on the server and stores it in a database.  So I try the following:

    < cfimage action = "read" source = "" #file.serverfile # "name ="image"/ >"
    < cfset exif = ImageGetEXIFMetaData (image) >
    < cfdump var = "#exif #" >
    < cfquery name = "blah" datasource = "#dsn" >
    Insert pictures (focal_length) values (#focallength #) where blah blah fishpaste.
    < / cfquery >

    Problem solved, right? Fake!  The dump file is for me a bunch of variables such as 'Exposure time' and 'Value Max of openness'.  (Note the spaces).    I need to isolate this 'exposure time' and the variables 'Max aperture value '.

    < cfset focallength = ImageGetExifTag (image, "Focal length") / >
    < cfoutput > #focallength # < / cfoutput >

    Whoo Hoo!


    But now, what happens if a malicious fool downloads a file WITHOUT exif data? OOPS!  This is where I'm stuck - how to test for the variable?  How to test if this variable exists?  Easy, just do it without spaces.  How do WITH that space between 'focal' and 'length '?  I have 'isdefined' my way to hell for breakfast without any luck!

    PS: an end, I am tired, and has already had three beers!

    Spank you in advance. Now get out and conquer!

    Good reading the documentation for structKeyExists():

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/functions_s_27.html#137977

    Has one advantage structKeyExists() over isDefined() is that she is not paralyzed by the function isDefined() off the idea of the date which is a variable name valid CF.

    This can be done:

    structKeyExists (myStruct, "any string you like here")

    --

    Adam

    PS: I'm not Castle, but Windhoek is OK.  I know that - strictly language - this isn't a beer of FAS ' n, but it'll make ;-)

  • Need help to retrieve the XML file

    Hello

    I'm new to xml query and I need help badly. I have a file xml with the following content. I need help to extract data as:

    beginTimelocalDnmeasObjLdnhdlcRxErrAborthdlcRxErrCRChdlcRxErrLackOfBufs
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1240010200
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1000
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1000

    and the XML data I have are:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <? XML-stylesheet type = "text/xsl" href = "MeasDataCollection.xsl"? >

    " < measCollecFile xmlns =" http://www.3GPP.org/FTP/specs/archive/32_series/32.435#measCollec ">

    < fileFormatVersion = "32.435 V9.0" fileHeader vendorName = "Ericsson" >

    < fileSender / >

    < measCollec beginTime = "2015-07 - 28 T 14: 45:00 + 03:00" / >

    < / fileHeader >

    < measData >

    < managedElement localDn = "ERSGSN01" / >

    < measInfo measInfoId = ' E1/T1, hdlc' >

    < job jobId = "Meas_E1T1_all" / >

    < duration granPeriod = "PT900S" endTime = "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < duration repPeriod = "PT900S" / >

    < p measType = "1" > hdlcRxErrAbort < / measType >

    < p measType = "2" > hdlcRxErrCRC < / measType >

    < p measType = "3" > hdlcRxErrLackOfBufs < / measType >

    < p measType = "4" > hdlcRxErrMaxFrameLen < / measType >

    < p measType = "5" > hdlcRxErrNonOctetAlign < / measType >

    < p measType = "6" > hdlcRxErrQueue < / measType >

    < p measType = "7" > hdlcRxOK < / measType >

    < p measType = "8" > hdlcRxOctets < / measType >

    < p measType '9' = > hdlcTxOK < / measType >

    < p measType = "10" > hdlcTxOctets < / measType >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1" >

    < p r = "1" > 2400 / < r >

    < p r '2' = > 1020 / < r >

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < / measInfo >

    < / measData >

    < fileFooter >

    < measCollec = endTime "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < / fileFooter >

    < / measCollecFile >

    Help, please. I tried to select a value using the following xml query which does not lead to any output:

    WITH t AS (SELECT xmltype (bfilename('SGSN_STAT_ERICSSON', 'A20150728.1445+0300-20150728.1500+0300_Meas_E1T1_all.52'), nls_charset_id('UTF-8')) FROM dual xmlcol)

    SELECT beginTime, localDn, measObjLdn, hdlcRxErrAbort, hdlcRxErrCRC, hdlcRxErrLackOfBufs

    T, XMLTABLE

    (XMLNAMESPACES ('http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec' as 'ns1'), )

    ' / measCollecFile'

    passage xmlcol

    columns

    beginTime PATH VARCHAR2 (32) ' / measCollec/@beginTime',

    localDn PATH VARCHAR2 (32) ' / measData/managedElement@localDn',

    measObjLdn PATH VARCHAR2 (32) ' / measData/measInfo/measValue@measObjLdn',

    ["hdlcRxErrAbort PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="1 ']',

    ["hdlcRxErrCRC PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="2 ']',

    "[" hdlcRxErrLackOfBufs PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="3 ']"

    )

    Sincere greetings

    Either way, using an XQuery FLWOR expression:

    select x.*
    from xmltable(
           xmlnamespaces(default 'http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec')
         , 'for $h in /measCollecFile
              , $v in $h/measData/measInfo/measValue
            return element row {
              $h/fileHeader/measCollec/@beginTime
            , $h/measData/managedElement/@localDn
            , $v/@measObjLdn
            , element r1 {$v/r[@p="1"]}
            , element r2 {$v/r[@p="2"]}
            , element r3 {$v/r[@p="3"]}
            }'
           passing xmltype(bfilename('TEST_DIR', 'test.xml'), nls_charset_id('AL32UTF8'))
           columns beginTime           timestamp with time zone path '@beginTime'
                 , localDn             varchar2(32)             path '@localDn'
                 , measObjLdn          varchar2(80)             path '@measObjLdn'
                 , hdlcRxErrAbort      number                   path 'r1'
                 , hdlcRxErrCRC        number                   path 'r2'
                 , hdlcRxErrLackOfBufs number                   path 'r3'
         ) x ;
    
  • 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

  • Remove the Exif data with using "save for Web".

    I have very large files.  I need to remove the EXIF thw.  I don't want to not use "save for web", because its impact on the quality and size (recompresses) files.  I need the files remain Nations United has changed with the exception of the removal of the EXIF data.

    I have a large number of files to do this to.

    Can anyone help?

    Thank you

    I'm not messing around with PS more for that matter...  3.6 Lightroom it in one easy step.  Without messing with additional TIFF files or to back up several files or Actions.

    YES!

  • I need help to Flash the bios. I have an Aspire 5810TZ. I start and it just says: "acer".

    I need help to Flash the bios. I have an Aspire 5810TZ. I start and he just says "acer" and goes no further. I went to the download page for BIOS on us.acer.com and it has a zip file with 5 files:
    JM4151135.exe
    IN FLORIDA...
    GPC_V135.bin
    Readme.txt
    FLASH. BAT
    What should I do? I tried to copy the files on a USB key and turn on/off with Fn + ESC key. After the release the power button and pressed Fn - Esc another screen appears after 30 seconds. I gave up and gave her 30 minutes but it does nothing. I read another person that should be flashing power button online. I have to rename one of the files. Help, please!

    Aspire 5810TZ menu of frozen startup.

    I finally understand it.

    I couldn't start a back b/c drive, it me did not start anything.

    I followed this chain of logic:

    -Downloaded the bios (2.35 is the one that worked for me)
    -Find the exe file in the winflash file.
    -Extract the files in archive exe using the 7-Zip program
    -Find the .fd file and rename it to JM41X64. FD (I read in a forum was unique in my laptop)
    -Copied JM41X64. FD and FLASH it is. EXE on a USB
    -A the battery and the hard drive out.
    -With its trendy diet I supported Fn + Esc and that you press the power button once while ensuring that the Fn + Esc has been always held down.
    -J' waited 6 seconds and release the Fn + Esc and seen the flashing flash player
    -After about 10 minutes, restarted the machine and the bios as like new.

    Later, I found that there was a hard drive problem.

    I want you guys should help more. All I needed was the name of the JM41X64 file. FD and you don't know how many hours I put into trying to find how simpy bios flash. It is not that difficult for someone with a b.s. in computer science to learn how. Couldn't we a m.s. back b/c the bios drive was messed up. F12 didn't work.

  • Need help to modify the Script to find the number of vCPU and reservation of memory in VC

    Hello

    Need help to modify the script so that his can person report to the vc all focus level instead of each level of the Cluster.

    Thank you

    KR

    Try this instead:

    $vmsInfo = Get-VM
    #Creating array to place new object
    
    $reportdata = @()
    
    Foreach ($vm in $vmsInfo)
    {
    #Creating new object
    $vmInfo = "" | Select Name, CPUReservationMHz, MemoryReservationGB
    $vmInfo.Name = $vm.Name
    $vmInfo.CPUReservationMHz = $vm.ExtensionData.ResourceConfig.CpuAllocation.Reservation
    $vmInfo.MemoryReservationGB = $vm.ExtensionData.ResourceConfig.MemoryAllocation.Reservation / 1024;
    #Inserting data into new object.
    $reportdata += $vminfo
    }
    $reportdata
    
  • 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.

  • How to integrate my name in the EXIF data for multiple image at the time Bridge CS3

    I tried to figure out how to do it for a while and just can't figure out how to get my the first two images and JPEG to show my name in the EXIF of the right of author or author entry when you enter in the dialog box "File Info" box so that it displays high display EXIF data using EXIF Viewer or in Bridge CS3.

    Can I get help on this? Point me to a tutorial or something?

    I already read bridge help and it is written in such a way that is not very clear to me on how to do it.

    Thank you for your help on this.

    Don't know what you mean with the get info part, but you can make a model

    for metadata, you want to appear in all the files.

    In the metadata high Panel on the right is a small triangle that if you click on it

    Displays a context menu. Inherent choose Create a metadata template. Fill it out

    desired fields and save it as a proper name.

    The model now shows in the submenu even as above as a submenu with append

    or replace the metadata model.

    If you select al files and use the model metadata to add all the files

    you will get your author about this model. Beware that the addition of this model

    some info in other areas or keywords can disappear. Just do a

    test on some files that you already have a return to the top of.

    Using the Adobe Photodownloader within Bridge you have the option of

    Add this template in the files when you download them from the card reader,

    see Advanced options for this.

    show my name in the EXIF data of the right of author or author entry when you enter it in the

    'Get Info' dialog box

  • Need help to diagnose the regular system analysis on iMac - processors maxed out

    I need help to identify the cause of a problem that occurs at least 2 - 3 times per day using my iMac (27-inch, mid 2010) running 10.11.5.

    I will use my iMac and then all at once things will start to really trolling. To the point of being completely unusable. Even if I'm able to move my cursor, then click to drag the windows around the screen nothing does really.

    I have iStat menus running so that can see graphics in my menu bar that all 4 cores are completely overfished. Occasionally, I was fast enough to launch the activity monitor to try to see what applications / services are responsible for, the use of % CPU column is completely empty of values, so I can't identify the culprits in a reliable way. I try to keep that column sorted by % CPU use in the hope that he could reveal something and normally it's the kernel_task who is up there.

    I use a Wacom Bamboo dated Tablet (MTE - 450 has) instead of a mouse, and at one point, I was convinced the pilot of PenTabletDrive it is based on was to blame. I contacted Wacom on this subject, and although there is no known issues they pointed out that although the latest drivers will allow me to use the tablet that they no longer support older devices. I was wondering if there was a problem of communication between the device and a driver that is no longer supported. I installed the latest driver supported for my tablet, but the problems persist.

    It may be interesting to note that, when my computer is in this semi-frozen state, I am able to launch the window enough force and quit all open applications leaving me with only the Finder. I guess that means that there are none of my apps running and it is probably one of the services. If I restart the Finder system grinds to a completely enclosed holt.

    I hope someone can let me know what I can find in the Console or elsewhere to help me finally zero in on what is to blame. I can share a log if that helps.

    Thank you in advance!

    Information that might be useful:

    Kept by I tend to be running: Adobe InDesign, Photoshop, Acrobat (all CC 2015), Mail, Safari with several tabs & Dropbox sync constantly.

    Download and run EtreCheck, created by one of his own assistants here in CSA. It is a diagnostic tool that is very useful for us to find problems. It will also give us additional specifications on your Mac. After his execution after the logfile here. It will never contain any personal information.

  • Need help to remove the zeros on the right

    Hello.

    I need help to replace the zeros in the string.

    I have a string which is the output of the network packet. There are a few trailing zeros in the package.

    I don't see them in normal mode, but the size of the string tells me that it's bigger then it looks like.

    When I pass in hexadecimal mode, you can see zeros.

    I tried to use the find/replace function allows you to search for 0 and replace it with an empty string constant. But, for some reason any, that he took no zeros.

    I need to stop the string that follows * 69.

    Show your code.  You won't find and replace with all zeroes.  These 00 in hex mode they are null characters.  (not printable byte with a value of zero).  You need search and replace on that character.  (replace string should look like 00, when it is set to display the hexadecimal code.

  • cq57: need help cq57 enter the password administrator or power on password... deisabled system 58555314

    need help cq57 enter the password administrator or power on password... deisabled system 58555314

    Thank you!!!

    @clatimer

    Enter 47433930

    REO

  • Need help in using the ActiveX to retrieve a VARIANT

    Need help in using the ActiveX to retrieve a VARIANT.

    Variant is shown as var {VT_Ul1, 1} in debugging

    By using the following

    HR = CA_VariantGetShort (& var, &value);)

    I get 0 for my answer instead of 1.

    Answered my own question.

    VT_Ul1 is an unsigned char and not a short.

  • Need help now for the live installation

    Need help now for the live installation

    Hello

    As described in the question, I understand that you need help. I will definitely help you however, I would be grateful if you could help me with more information to better understand the problem and resolving it.

    1. What is the problem you are experiencing during installation?

    2. That you install? Any software or operating system?

    3. How you try to install the software/Os/application?

    If you need live support from Microsoft then you can click on the link given below and check if it helps.

    https://support.Microsoft.com/en-us/contactus/

    Hope that this help, please write us back for any further assistance on this point, we will be happy to help you further.

Maybe you are looking for

  • How unclose window and all its groups of tabs?

    I have at least 100 tablets in groups of 5 or more and then had another window open with nothing important in. The main window has been closed to restart Windows, and then the window with nothing in it was closed. When I start Firefox, it opens the w

  • Dial-up connections in Windows 8?

    Hello I have a Lenovo turn... fantastic, but can't find demand for dial-up connections from lenovo and the latest version for windows 7 is not compatible with... Thank you

  • DDR3 memory upgrade

    Where can I find the bars of DDR3 memory for desktop HP Pavilion P7 - 1126 s? The manual says I need PC3-10600 (1333 mhz) - SDRAM DDR3 unbuffered, non-ECC memory - DIMM of 64-bit, 1.5V, 240 pins - DDR3-DIMM, SO-DIMM, 16 GB max using 4 GB modules. Una

  • 30 m [nute startup

    I tried all the steps recommended to speed up the boot sequence, but there are still at least 30, imutes of power until I can run programs or connect to the internet.   How can I solve it and solve the problem? Dianthus

  • Make sure the brightness stays where I want it to be instead of him change on its own

    Why the brightness does not change where I put it to be? The laptop is not connected to the power I've set up my own custom plan and tried to use the power saver option but the brightness changin dungeons have his own and becomes clearer...