First time here? Check out the FAQ!
answered 2018-03-03 07:06:19 -0600
you can't using imread() , there's no codec for that builtin (still a license problem)
you can abuse VideoCapture (works, because ffmpeg can read gif's) , or you'll have to fallback to 3rd party libs like PIL