Commit 7b6de125 authored by Davis King's avatar Davis King

Updated png_loaded so it can handle paletted images.

parent 62bf0384
......@@ -149,6 +149,7 @@ namespace dlib
throw image_load_error(std::string("png_loader: parse error in file ") + filename);
}
png_set_palette_to_rgb(ld_->png_ptr_);
png_init_io( ld_->png_ptr_, fp );
png_set_sig_bytes( ld_->png_ptr_, 8 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment