func DecodeConfig(r io.Reader) (cfg image.Config, err error) {
	if w, h, _, loadErr := load(r); loadErr == nil {
		cfg.Width = w
		cfg.Height = h
	} else {
		err = loadErr
	}

	return
}
// DecodeConfig decodes a header of LMP image and returns its
// configuration.
DecodeConfig decodes a header of LMP image and returns its
configuration.
// DecodeConfig decodes a header of LMP image and returns its // configuration .
func DecodeConfig(r io.Reader) (cfg image.Config, err error) {
	if w, h, _, loadErr := load(r); loadErr == nil {
		cfg.Width = w
		cfg.Height = h
	} else {
		err = loadErr
	}
	return
}
func DecodeConfig ( r io . Reader ) ( cfg image . Config , err error ) { if w , h , _ , loadErr := load ( r ) ; loadErr == nil { cfg . Width = w cfg . Height = h } else { err = loadErr } return }
DecodeConfig decodes a header of LMP image and returns its
configuration.
DecodeConfig decodes a header of LMP image and returns its configuration .