Skip to content

Add JFXX as jpeg marker in imghdr module #87360

Closed

Description

@alexdraconian
BPO 43194
Nosy @iritkatriel, @alexdraconian
PRs
  • bpo-43194: Add JFXX as jpeg marker to imghdr.py #24474
  • 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 = None
    closed_at = <Date 2022-03-13.17:17:13.345>
    created_at = <Date 2021-02-10.14:37:21.318>
    labels = ['type-feature', 'library', '3.9', '3.10']
    title = 'Add JFXX as jpeg marker in imghdr module'
    updated_at = <Date 2022-03-13.17:17:13.344>
    user = 'https://github.com/alexdraconian'

    bugs.python.org fields:

    activity = <Date 2022-03-13.17:17:13.344>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-13.17:17:13.345>
    closer = 'iritkatriel'
    components = ['Library (Lib)']
    creation = <Date 2021-02-10.14:37:21.318>
    creator = 'elbarkwon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43194
    keywords = []
    message_count = 2.0
    messages = ['386782', '415048']
    nosy_count = 2.0
    nosy_names = ['iritkatriel', 'elbarkwon']
    pr_nums = ['24474']
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43194'
    versions = ['Python 3.9', 'Python 3.10']

    Activity

    1. alexdraconian commented on Feb 10, 2021

      alexdraconianmannequin
      MannequinAuthor

      Currently imghdr module only finds "JFIF" or "Exif" in specific position. However there's some jpeg images with "JFXX" marker. I had some image with this marker and imghdr.what() returned None.

      Refer to:
      https://www.ecma-international.org/wp-content/uploads/ECMA_TR-98_1st_edition_june_2009.pdf
      (Section 10.1 JFIF Extension APP0 Marker Segment)

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Feb 10, 2021
    3. iritkatriel commented on Mar 13, 2022

      @iritkatriel
      Member

      imghdr is deprecated as per PEP-594, so there won't be further enhancements to it.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions