Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imghdr -- identify JPEGs in EXIF format #38606

Closed
staschuk mannequin opened this issue Jun 8, 2003 · 2 comments
Closed

imghdr -- identify JPEGs in EXIF format #38606

staschuk mannequin opened this issue Jun 8, 2003 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@staschuk
Copy link
Mannequin

staschuk mannequin commented Jun 8, 2003

BPO 751031
Nosy @rhettinger
Files
  • jpeg-exif.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/rhettinger'
    closed_at = <Date 2005-01-07.08:15:58.000>
    created_at = <Date 2003-06-08.20:08:39.000>
    labels = ['library']
    title = 'imghdr -- identify JPEGs in EXIF format'
    updated_at = <Date 2005-01-07.08:15:58.000>
    user = 'https://bugs.python.org/staschuk'

    bugs.python.org fields:

    activity = <Date 2005-01-07.08:15:58.000>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2003-06-08.20:08:39.000>
    creator = 'staschuk'
    dependencies = []
    files = ['5349']
    hgrepos = []
    issue_num = 751031
    keywords = ['patch']
    message_count = 2.0
    messages = ['43918', '43919']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'staschuk']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue751031'
    versions = ['Python 2.4']

    @staschuk
    Copy link
    Mannequin Author

    staschuk mannequin commented Jun 8, 2003

    Someone posted to c.l.py [1] about some of their JPEGs not
    being identified as such by imghdr. Turns out they were
    EXIF files, and imghdr only identifies JFIF files. A little web
    research suggests EXIF is the usual format for JPEGS from
    digital cameras.

    The patch adds the ability to identify such files; they are
    reported as 'jpeg-exif'. I've no idea whether this is the
    Right Thing.

    [1] http://groups.google.com/groups?th=45c0442a1d74e9c4

    @staschuk staschuk mannequin closed this as completed Jun 8, 2003
    @staschuk staschuk mannequin assigned rhettinger Jun 8, 2003
    @staschuk staschuk mannequin added the stdlib Python modules in the Lib dir label Jun 8, 2003
    @staschuk staschuk mannequin closed this as completed Jun 8, 2003
    @staschuk staschuk mannequin assigned rhettinger Jun 8, 2003
    @staschuk staschuk mannequin added the stdlib Python modules in the Lib dir label Jun 8, 2003
    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Added Exif detection to Py2.5. See Lib/imghdr.py 1.12

    Exif is JFIF style coding where the APP1 marker has been
    added with extra information (thumbnail image and shooting
    data.)

    For a good overview of the coding, see:
    http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant