Skip to content
Snippets Groups Projects
Commit bf82fea2 authored by George Nachman's avatar George Nachman
Browse files

Fix image decoder for PDFs by pulling in change from master

parent f18cd64a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -77,13 +77,14 @@ int main(int argc, const char * argv[]) {
}
serializableImage.size = imageSize;
BOOL isGIF = NO;
if (count > 1) {
syslog(LOG_DEBUG, "multiple frames found");
BOOL isGIF = YES;
NSMutableArray *frameProperties = [NSMutableArray array];
isGIF = YES;
for (size_t i = 0; i < count; ++i) {
NSDictionary *gifProperties = GIFProperties(source, i);
// TIFF files may have multiple pages, so make sure it's an animated GIF.
// TIFF and PDF files may have multiple pages, so make sure it's an animated GIF.
if (gifProperties) {
[frameProperties addObject:gifProperties];
} else {
Loading
Loading
@@ -117,7 +118,8 @@ int main(int argc, const char * argv[]) {
[serializableImage.delays addObject:@(totalDelay)];
}
}
} else {
}
if (!isGIF) {
syslog(LOG_DEBUG, "adding decoded image");
[serializableImage.images addObject:image];
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment