docstr: CompressedImageCodec would compress/encompress images.
  
  :param image_codec: any format string supported by opencv. e.g. ``png``, ``jpeg``
  :param quality: used when using ``jpeg`` lossy compression
docstr_tok: ["CompressedImageCodec","would","compress\/encompress","images",".",":","param","image_codec",":","any","format","string","supported","by","opencv",".","e.g",".","``","png","``",",","``","jpeg","``",":","param","quality",":","used","when","using","``","jpeg","``","lossy","compression"]
code: def __init__(self, image_codec="png", quality=80):
      """CompressedImageCodec would compress/encompress images.
  
      :param image_codec: any format string supported by opencv. e.g. ``png``, ``jpeg``
      :param quality: used when using ``jpeg`` lossy compression
      """
      assert (
          OPENCV_AVAILABLE
      ), "{} requires opencv-python to be installed".format(
          type(self).__name__
      )
  
      self._image_codec = "." + image_codec
      self._quality = quality
  
imports: from abc import abstractmethod
  from io import BytesIO
  import numpy
label_desc: Use image node_id 1 to create a new CompressedImageCodec object from inherited base classes: DataframeColumnCodec with example: obj = CompressedImageCodec(image_codec, quality)