-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform upgrades #1469
Platform upgrades #1469
Conversation
…y policy Alpine 3.16 is the last to provide a package for ImageMagick 6, and it’s EOL. This adds a security policy (the previous one was “open”, which is a scary thing when you’re talking about this particular piece of software!), and should fix the runaway memory leak when ImageMagick detects that there isn’t enough memory for an operation and writes pixel data as (linked) files to an in-memory filesystem (`/tmp`), guaranteeing that they will now persist in memory after a failure. (It still seems to copy some *inputs* to temporary files, though, so there’s still some leak potential.)
397ab1e
to
2a3ea4e
Compare
2a3ea4e
to
13a081b
Compare
<policy domain="resource" name="width" value="16384"/> | ||
<!-- Set the maximum height of an image. When this limit is exceeded, an | ||
exception is thrown. --> | ||
<policy domain="resource" name="height" value="16384"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the 16,384px width and height limits cause any issues for long comics that artists wish to upload as one piece?
I am aware of at least one example of a submission getting near these limits; 15,550px-height image here: https://www.weasyl.com/~trevorfox/submissions/2083323/bori-story
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but we have to set the limits somewhere. Notable points:
- “cover” images are already resized to a maximum of 3000 pixels tall
- WebP only supports 16383 pixels per side (which is why I picked this particular limit); AVIF’s limits are even lower
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basing the limit on WebP's limits is reasonable to me.
No description provided.