func (s *StegImage) LoadImageFromFile(imgPath string) error {
	reader, err := os.Open(imgPath)
	if err != nil {
		log.Error(err)
		return err
	}
	defer reader.Close()

	// Read into an image
	s.imgLoaded, s.imgType, err = image.Decode(reader)
	if err != nil {
		log.Error(err)
		return err
	}
	log.Notice("Image Type Loaded:", s.imgType)
	return nil
}
// LoadImageFromFile loads the given image into the StegImage structure
LoadImageFromFile loads the given image into the StegImage structure
// LoadImageFromFile loads the given image into the StegImage structure
func (s *StegImage) LoadImageFromFile(imgPath string) error {
	reader, err := os.Open(imgPath)
	if err != nil {
		log.Error(err)
		return err
	}
	defer reader.Close()
	s.imgLoaded, s.imgType, err = image.Decode(reader)
	if err != nil {
		log.Error(err)
		return err
	}
	log.Notice("Image Type Loaded:", s.imgType)
	return nil
}
func ( s * StegImage ) LoadImageFromFile ( imgPath string ) error { reader , err := os . Open ( imgPath ) if err != nil { log . Error ( err ) return err } defer reader . Close ( ) s . imgLoaded , s . imgType , err = image . Decode ( reader ) if err != nil { log . Error ( err ) return err } log . Notice ( " " , s . imgType ) return nil }
LoadImageFromFile loads the given image into the StegImage structure
LoadImageFromFile loads the given image into the StegImage structure
// Read into an image