Professional Web Applications Themes

Extracting EXIF/IPTC info from jpeg/tiff image files - PHP Development

Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files. I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load some external modules/software to do the same. In case external which all modules/software to refer? Please let me know. Thanks Binay...

  1. #1

    Default Extracting EXIF/IPTC info from jpeg/tiff image files

    Hi everybody

    I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files.

    I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load some external modules/software to do the same. In case external which all modules/software to refer?

    Please let me know.

    Thanks

    Binay



    Binay Agarwal Guest

  2. #2

    Default Re: [PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

    search for exif on phpclasses.org

    Binay Agarwal wrote:
    > Hi everybody
    >
    > I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files.
    >
    > I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load some external modules/software to do the same. In case external which all modules/software to refer?
    >
    > Please let me know.
    >
    > Thanks
    >
    > Binay
    >
    >
    >
    Marek Kilimajer Guest

  3. #3

    Default Re: [PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

    Hi,

    Some time ago I needed to read IPTC info from jpeg files, and I ended up
    with a function to read these fields from JPEG header. Another approach
    is to use ImageMagick to read the exif/iptc from jpeg/tiff. Here is the
    function, I hope it'll be useful:

    function get_IPTC($path) {
    $size = GetImageSize ($path, &$info);
    if (isset($info["APP13"])) {
    $iptc = iptcp($info["APP13"]);
    if (is_array($iptc)) {
    $IPTC_data=array( "Version" => $iptc["2#000"][0], # Max 2 octets,
    binary number
    "Title" => $iptc["2#005"][0], # Max 65 octets, non-repeatable,
    alphanumeric
    "Urgency" => $iptc["2#010"][0], # Max 1 octet, non-repeatable,
    numeric, 1 - High, 8 - Low
    "Category" => $iptc["2#015"][0], # Max 3 octets, non-repeatable, alpha
    "SubCategories" => $iptc["2#020"], # Max 32 octets, repeatable,
    alphanumeric
    "Keywords" => $iptc["2#025"], # Max 64 octets, repeatable,
    alphanumeric
    "Instructions" => $iptc["2#040"][0], # Max 256 octets,
    non-repeatable, alphanumeric
    "CreationDate" => $iptc["2#055"][0], # Max 8 octets,
    non-repeatable, numeric, YYYYMMDD
    "CreationTime" => $iptc["2#060"][0], # Max 11 octets,
    non-repeatable, numeric+-, HHMMSS(+|-)HHMM
    "ProgramUsed" => $iptc["2#065"][0], # Max 32 octets,
    non-repeatable, alphanumeric
    "Author" => $iptc["2#080"][0], #!Max 32 octets, repeatable,
    alphanumeric
    "Position" => $iptc["2#085"][0], #!Max 32 octets, repeatable,
    alphanumeric
    "City" => $iptc["2#090"][0], # Max 32 octets, non-repeatable,
    alphanumeric
    "State" => $iptc["2#095"][0], # Max 32 octets, non-repeatable,
    alphanumeric
    "Country" => $iptc["2#101"][0], # Max 64 octets, non-repeatable,
    alphanumeric
    "TransmissionReference" => $iptc["2#103"][0], # Max 32 octets,
    non-repeatable, alphanumeric
    "Headline" => $iptc["2#105"][0], # Max 256 octets, non-repeatable,
    alphanumeric
    "Credit" => $iptc["2#110"][0], # Max 32 octets, non-repeatable,
    alphanumeric
    "Source" => $iptc["2#115"][0], # Max 32 octets, non-repeatable,
    alphanumeric
    "Copyright" => $iptc["2#116"][0], # Max 128 octets,
    non-repeatable, alphanumeric
    "Caption" => $iptc["2#120"][0], # Max 2000 octets, non-repeatable,
    alphanumeric
    "CaptionWriter" => $iptc["2#122"][0] # Max 32 octets,
    non-repeatable, alphanumeric
    );
    } else $IPTC_data=array();
    }
    return $IPTC_data;
    }

    Regards,
    Vahan

    Binay Agarwal wrote:
    > Hi everybody
    >
    > I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files.
    >
    > I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load some external modules/software to do the same. In case external which all modules/software to refer?
    >
    > Please let me know.
    >
    > Thanks
    >
    > Binay
    >
    >
    >
    Vahan Yerkanian Guest

Similar Threads

  1. Extracting Tiff Image from PDF doent
    By karthikeyan_Rajmohan@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 5
    Last Post: September 19th, 02:56 PM
  2. Extracting IPTC info
    By Hywel Harris in forum Adobe Dreamweaver & Contribute
    Replies: 0
    Last Post: January 5th, 06:32 PM
  3. Exif, IPTC and Photoshop JPEG
    By GimBox in forum PHP Development
    Replies: 3
    Last Post: May 22nd, 02:09 PM
  4. Extracting EXIF/IPTC info from jpeg and tiff files
    By Binay Agarwal in forum PHP Development
    Replies: 0
    Last Post: August 26th, 09:45 PM
  5. Read/write IPTC info from a JPEG file?
    By zeng in forum ASP.NET General
    Replies: 0
    Last Post: August 1st, 05:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139