• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. ImageDecoder
  4. ImageDecoder.close()

Table of contents

  • Syntax
  • Examples
  • Specifications
  • Browser compatibility

ImageDecoder.close()

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The close() method of the ImageDecoder interface ends all pending work and releases system resources.

Syntax

ImageDecoder.close()

Parameters

None.

Return Value

undefined.

Examples

The following example closes the ImageDecoder.

ImageDecoder.close();

Specifications

Specification
WebCodecs
# dom-imagedecoder-close

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 28, 2021, by MDN contributors

Related Topics

  1. WebCodecs API
  2. Interfaces
    1. AudioData
    2. AudioDecoder
    3. AudioEncoder
    4. EncodedAudioChunk
    5. EncodedVideoChunk
    6. ImageDecoder
    7. ImageTrack
    8. ImageTrackList
    9. VideoDecoder
    10. VideoEncoder
    11. VideoColorSpace
    12. VideoFrame
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies