func DecodeConfig(r io.Reader) (config image.Config, err error) {
	data, err := ioutil.ReadAll(r)
	if err != nil {
		return
	}
	hdr, err := rawpDecodeHeader(data)
	if err != nil {
		return
	}

	model, err := rawpColorModel(hdr)
	if err != nil {
		return
	}

	config = image.Config{
		ColorModel: model,
		Width:      int(hdr.Width),
		Height:     int(hdr.Height),
	}
	return
}
// DecodeConfig returns the color model and dimensions of a RawP image without
// decoding the entire image.
DecodeConfig returns the color model and dimensions of a RawP image without
decoding the entire image.
// DecodeConfig returns the color model and dimensions of a RawP image without // decoding the entire image .
func DecodeConfig(r io.Reader) (config image.Config, err error) {
	data, err := ioutil.ReadAll(r)
	if err != nil {
		return
	}
	hdr, err := rawpDecodeHeader(data)
	if err != nil {
		return
	}
	model, err := rawpColorModel(hdr)
	if err != nil {
		return
	}
	config = image.Config{
		ColorModel: model,
		Width:      int(hdr.Width),
		Height:     int(hdr.Height),
	}
	return
}
func DecodeConfig ( r io . Reader ) ( config image . Config , err error ) { data , err := ioutil . ReadAll ( r ) if err != nil { return } hdr , err := rawpDecodeHeader ( data ) if err != nil { return } model , err := rawpColorModel ( hdr ) if err != nil { return } config = image . Config { ColorModel : model , Width : int ( hdr . Width ) , Height : int ( hdr . Height ) , } return }
DecodeConfig returns the color model and dimensions of a RawP image without
decoding the entire image.
DecodeConfig returns the color model and dimensions of a RawP image without decoding the entire image .