Skip to content

Commit 51dbe22

Browse files
Merge pull request #60 from datalogics/develop
Develop to main
2 parents e52f28c + 379be57 commit 51dbe22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Images/ImageExport/ImageExport.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* PDF syntax to identify all PDEImage objects on the given page while recursively checking
88
* any PDEContainers, PDEGroups, and PDEForms.
99
*
10-
* Copyright (c) 2024, Datalogics, Inc. All rights reserved.
10+
* Copyright (c) 2024-2025, Datalogics, Inc. All rights reserved.
1111
*
1212
*/
1313

@@ -50,6 +50,11 @@ void ExportImage(PDEImage image, DLImageExportType exportType, DLPDEImageExportP
5050
return;
5151
}
5252

53+
// Export to these formats is skipped as they don't support the concept of an Alpha Channel in a standard way
54+
if (PDEImageHasSMask(image) && (exportType == ExportType_BMP || exportType == ExportType_JPEG || exportType == ExportType_GIF)) {
55+
return;
56+
}
57+
5358
// Create and format the output file name.
5459
char buf[1024];
5560
sprintf(buf, "ImageExport_page%d_i%d%s", page + 1, nextImg, imgExt);

0 commit comments

Comments
 (0)