I-250Pixel Aspect Ratio Check

image2004

Verifies pixel aspect ratio metadata consistency — mismatches indicate resampling, editing, or AI generation.

Pixel Aspect Ratio Verification
This method verifies the consistency of pixel aspect ratio (PAR) metadata and actual image dimensions to detect editing, resampling, or AI generation:1. Metadata PAR Extraction: The pixel aspect ratio is extracted from image metadata — EXIF tags (PixelXDimension, PixelYDimension, FocalPlaneXResolution, FocalPlaneYResolution), ICC profile, or container metadata. Standard digital cameras produce square pixels (PAR = 1:1), while some video captures use non-square pixels (e.g., DV NTSC = 0.9091, DV PAL = 1.0940, HDV 1080i = 1.3333). The expected PAR is determined from the camera/format metadata and compared against the actual image dimensions.2. Resampling Detection via Interpolation Artifacts: When an image is resized (changing its aspect ratio), interpolation introduces periodic correlations between adjacent pixels. The method analyzes the second derivative of pixel intensity along rows and columns separately. Resampled images show periodic zero-crossings in the auto-covariance of the second derivative at a period equal to the resampling factor. The presence of different resampling factors in horizontal vs. vertical directions indicates non-uniform scaling that changed the effective PAR.3. Dimensional Consistency Analysis: Camera sensors have fixed physical dimensions (e.g., 36×24mm for full-frame, 22.3×14.9mm for APS-C). The image dimensions in pixels, combined with sensor size metadata, should produce consistent pixel pitch values. The method checks: (a) whether the image dimensions match standard sensor resolutions, (b) whether the width/height ratio matches standard aspect ratios (3:2, 4:3, 16:9, 1:1), and (c) whether cropping or padding has been applied. Non-standard dimensions suggest post-processing or AI generation.4. AI Generation Dimension Patterns: AI image generators produce images at characteristic resolutions (e.g., 512×512, 768×768, 1024×1024 for Stable Diffusion; 1024×1024, 1792×1024 for DALL-E 3). The method maintains a database of known AI generator output dimensions and aspect ratios. Images matching these dimensions, especially when combined with non-standard EXIF metadata or absent camera sensor information, are flagged as potentially AI-generated.
Standard PARs: 1:1 (digital photo), 0.9091 (DV NTSC), 1.0940 (DV PAL)
Resampling detection: auto-covariance of 2nd derivative

Standard aspect ratios: 3:2, 4:3, 16:9, 1:1

AI resolution database: 50+ known generator output sizes

Sensor dimension database: 200+ camera models

Minimum image size: 64×64 pixels
91% accuracy for detecting non-native aspect ratios through resampling detection. Camera sensor matching achieves 87% source identification from dimensions alone. AI generation dimension pattern matching: 72% accuracy (many AI tools now support custom sizes). Interpolation-based resampling detection: 85–93% accuracy for scaling factors > 1.1×.
• Resampling detection is mathematically well-founded and highly reliable
• Dimensional analysis requires only metadata — extremely fast

• AI generator dimension patterns provide quick screening

• Works on any image format with metadata support

• Non-destructive analysis preserving original file
• Metadata can be stripped or modified, reducing effectiveness
• Integer resampling factors (2×, 3×) produce fewer detectable artifacts

• Modern AI generators support arbitrary output dimensions

• Standard cropping operations change dimensions legitimately

• Social media platforms resize images, creating expected dimension changes
Detecting image resampling and aspect ratio modification. Verifying that image dimensions are consistent with the claimed camera sensor. Identifying AI-generated images from characteristic output dimensions. Detecting video frame exports with non-square pixel artifacts.