Skip to content

Commit

Permalink
change MAX_IMAGE_PIXELS on x64 to be MAX_IMAGE_DIMENSIONS ^2
Browse files Browse the repository at this point in the history
  • Loading branch information
sylikc committed Jun 21, 2024
1 parent f0f2e14 commit a0217d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JPEGView/MaxImageDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const unsigned int MAX_BMP_FILE_SIZE = 1024 * 1024 * 100;

// this may be an artificial limitation and might make configurable, or ignore custom setting only for win32
#ifdef _WIN64
const unsigned int MAX_IMAGE_PIXELS = 1024 * 1024 * 500;
const unsigned int MAX_IMAGE_PIXELS = 65535 * 65535;
#else
const unsigned int MAX_IMAGE_PIXELS = 1024 * 1024 * 100;
#endif
Expand Down

0 comments on commit a0217d8

Please sign in to comment.