Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
7b6de125
Commit
7b6de125
authored
May 27, 2011
by
Davis King
Browse files
Updated png_loaded so it can handle paletted images.
parent
62bf0384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
dlib/image_loader/png_loader.cpp
dlib/image_loader/png_loader.cpp
+1
-0
No files found.
dlib/image_loader/png_loader.cpp
View file @
7b6de125
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment