You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upper limit of PIL, our image library, for loading images is 89478485 which is equivalent to ~ 9400x9400 pixels. Large or very high pixel-depth scans, such as of newspapers, maps etc. can be larger than that. Loading a larger image will result in an error to the user.
How it should be
The upper limit should be future-proof, 40k by 40k pixels for a possible image seems a reasonable upper bound.
As we move towards networked components, this setting should be documented to make developers aware that this could be a potential source for DOS attacks by spamming a server with bogus large images.
Current situation
The upper limit of PIL, our image library, for loading images is 89478485 which is equivalent to ~ 9400x9400 pixels. Large or very high pixel-depth scans, such as of newspapers, maps etc. can be larger than that. Loading a larger image will result in an error to the user.
How it should be
The upper limit should be future-proof, 40k by 40k pixels for a possible image seems a reasonable upper bound.
As we move towards networked components, this setting should be documented to make developers aware that this could be a potential source for DOS attacks by spamming a server with bogus large images.
Steps
The text was updated successfully, but these errors were encountered: