Tests: image_filter_max_pixels directive - #84
Draft
VadimZhestikov wants to merge 1 commit into
Draft
Conversation
Verifies that source images with more pixels than the configured limit are rejected, that images within the limit are processed, and that a zero limit disables the check. Also verifies that a source whose true dimensions exceed 16 bits is measured in full: a 65540 x 2 PNG must be rejected, not understated to 4 x 2 by reading only the low 16 bits of the 32-bit PNG size fields.
VadimZhestikov
force-pushed
the
image-filter-max-pixels
branch
from
July 17, 2026 21:08
01250a3 to
c553198
Compare
VadimZhestikov
marked this pull request as draft
July 21, 2026 18:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
image_filter_max_pixels.t, covering the newimage_filter_max_pixelsdirective: a source image with more pixels than the configured limit is
rejected, an image within the limit is processed, and a zero limit disables
the check. Version-guarded with
try_runso it skips on builds without thedirective.
Companion to the
ngx_http_image_filter_modulesource change (nginx/nginx#1575).