
ImageSizeReducer
@imagesizereducer
Take an inline image value as it appears in HTML, CSS, or a modern web application and recover the file inside it. The declared media type is shown alongside the decoded result, so the two can be checked against each other.
An inline image is a small header followed by the data, and the header is the only part that says what the rest of it is supposed to be.
Everything needed to convert data URI to PNG: the declaration, the payload, and both ways of writing the data section, with the decoded image shown against what the header claimed.
The declared media type
The label at the start of the value is reported, which is what decides the extension the recovered file should be saved with.
Both data forms handled
Encoded payloads and percent-escaped ones are both decoded, so the shape of the value never has to be worked out in advance.
A preview to compare against
The decoded image appears on the canvas, which is how a declaration that disagrees with the contents becomes obvious immediately.
The original bytes, not a copy
What comes out is the file that was embedded rather than a screenshot of it, so it can be resized and reused without loss.
Everything stays local
The value is decoded in the page, which matters for inline assets pulled out of production stylesheets and internal templates.

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer
Three steps, and the second is the one that matters most, since the declaration is what tells you which extension a recovered file should carry.
Include the declaration at the start. Nothing needs to be trimmed manually, and any line breaks from a wrapped value are handled during decoding.
The header is reported alongside the decoded image. Check that the two agree, and note the type, because it determines the extension the file should be saved with.
Save the result and name it according to its actual contents. What comes out is the embedded asset itself, not an approximation of it.
Four kinds of work where a picture exists only as a value inside a document.
Email developers
templates with every graphic embedded
Templates arrive self-contained because external requests are unreliable in mail clients. When a graphic has to be reused elsewhere, decoding the value is the only way to get it back out as a file.
Front-end developers
small assets built into a stylesheet
Inlining small graphics is a sensible performance decision and a poor storage decision. Being able to pull the original back out means the source project does not have to be found every time.
Brand managers
marking assets recovered from old builds
A logo used on a page for years sometimes exists nowhere else. Extracting it from the stylesheet gives a clean file rather than a screenshot, which matters when it has to go to a printer.
Technical writers
documents that carry their own images
A single file that travels with everything inside it is a good delivery format and an awkward archive. Decoding the values turns it back into a folder of ordinary assets.
What the declaration means, and the cases where it needs to be treated with suspicion.
Paste the inline value in full, check the declared media type against the decoded image, and download what the payload actually contains.
Decode this valueSmaller files, same picture.