Skip to content
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

Merged
merged 4 commits into from
Nov 6, 2024
Merged

Platform upgrades #1469

merged 4 commits into from
Nov 6, 2024

Conversation

charmander
Copy link
Contributor

No description provided.

…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.)
@charmander charmander force-pushed the platform-upgrades branch 5 times, most recently from 397ab1e to 2a3ea4e Compare November 5, 2024 03:23
@charmander charmander marked this pull request as ready for review November 5, 2024 04:36
<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"/>
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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.

@charmander charmander merged commit 34e7664 into Weasyl:main Nov 6, 2024
4 checks passed
@charmander charmander deleted the platform-upgrades branch November 6, 2024 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants