Static ReadonlyPNG_Static ReadonlyWEBP_StaticriffOne RIFF chunk written out, padded to an even length.
its four characters
its data
the chunk's bytes
StaticriffThe RIFF chunks between two offsets, as [fourcc, payload] pairs.
the bytes
the first chunk's offset
where the chunks end
the chunks, or null when one runs past to
StaticstrippedThe file as it will be kept, or null when it cannot be rewritten.
the file
its type, as the bytes decided it (image/jpeg,
image/png or image/webp)
the rewritten file, or null for a file that cannot be walked or a type with no writer
StaticstrippedA JPEG with its metadata segments and anything after its end removed.
APP0 (JFIF), an APP2 ICC profile and APP14 stay; every other application segment and every comment goes. A file that is not walkable to the end of its image answers null.
the file, starting with the SOI marker
the rewritten file, or null
StaticstrippedA PNG holding only the chunks in PNG_KEPT, and nothing after IEND.
the file, starting with the PNG signature
the rewritten file, or null when it does not walk to IEND
StaticstrippedA WebP holding only the chunks in WEBP_KEPT, its EXIF and XMP flags
cleared, and nothing after its RIFF size.
the file, starting with RIFF....WEBP
the rewritten file, or null when it cannot be walked or holds no image
Rewrites a JPEG, PNG or WebP without its metadata. A static utility class; it holds no state.