Giter Site home page Giter Site logo

surrim / exif Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 272 KB

For more information about this repository, visit the project page at https://www.drupal.org/project/exif

License: GNU General Public License v2.0

CSS 0.55% PHP 95.60% JavaScript 0.44% Twig 3.41%

exif's Introduction

Exif Module

The Exif module allows displaying Exif metadata on image nodes. Exif is a specification for the image file format used by digital cameras.

The metadata tags defined in the Exif standard cover a broad spectrum including:

  • Date and time information. Digital cameras will record the current date and time and save this in the metadata.
  • Camera settings. This includes static information such as the camera model and make, and information that varies with each image such as orientation, aperture, shutter speed, focal length, metering mode, and film speed information.
  • Location information, which could come from a GPS receiver connected to the camera.
  • Descriptions and copyright information.

Administrators can choose via fields GUI which Exif information are read.

At this time, this module supports Exif information only with JPEG files.

REQUIREMENTS

Drupal 9 or 10 with at least node enabled. There can be several image per node. each Exif field must be linked to the chosen image of the node.

If taxonomy module is enabled, the information is saved as a vocabulary. A specific vocabulary must be set in the exif plugin configuration page.

Constraints

  • with Image Processing utility:

Note that, it has been reported that when using GD, it strips some fields (like field_gps_gpslatitude or field_gps_gpslongitude) from uploaded files. Imagemagick seems not to have this limitation and does not strip these fields. So Imagemagick is recommended when access to GPS data.

CONFIGURATION

Create a content type

After installing it, you can go to your structure administration page. Let's say there is a content type "photography". Go to the content settings and add a new type of content 'photography' with default fields. Then, add exif fields. For the name of the field follow some naming conventions.

Naming convention

The general rule is: [field]_[section]_[name]

Examples:

  • field_exif_exposuretime -> this would read the ExposureTime of the image and save it in this field.
  • field_ifd0_datetime -> this would read the date time (2009:01:23 08:52:43) of the image. The field_type could be a normal textfield, but also a date field would be possible.

Sample page

On the Exif quickstart page (admin/config/media/exif/helper) there is a list of all possible information. The information is retrieved from the image "sample.jpg" and may not contain all tags available. If you are looking for some specific tags you can just replace this image with your own image.

Most used values

  • Exif

    • Make
    • Model
    • ExposureTime
    • FocalLength
    • ISO
    • FNumber
    • DateTimeOriginal
    • ApertureValue
    • Flash
    • UserComment
    • ExposureCompensation
    • ShutterSpeedValue
    • ExposureMode
    • WhiteBalance
    • GPS*
  • XMP

    • Artist
    • Orientation
    • ColorMode
    • FlashMode
    • FlashFired
    • Title
    • Keywords

exif's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.