Normal Map Resizer
This normal map resizer changes texture dimensions while treating RGB as signed surface directions. It samples vector components, normalizes the result, and writes a lossless PNG. Compare the original and resized texture under the same light, choose alpha handling, and check the output in your material workflow.
How to Get Started
Load a tangent-space normal PNG or try the generated normal sample. Enter width and height, retain aspect-ratio lock when matching proportions matters, or choose a long-edge size preset. Select nearest or bilinear sampling and decide whether to preserve alpha. Switch from textures to the fixed-light comparison, inspect the reported fallback count, then download after the latest dimensions finish processing. Reset restores original dimensions and default processing without discarding your source.
What Is a Normal Map Resizer?
A normal map resizer transforms an existing direction texture to another pixel resolution. It does not derive normals from height, convert a photograph into relief, or recover missing sculpted details. Its specific job is to maintain meaningful direction data through spatial sampling. The result is still a tangent-space texture whose use depends on matching mesh tangents, UVs, and convention. Verify the source before resizing if its encoding or channel contents are uncertain.
Validate the source directions before resizingWhy Normal Maps Are Vector Data
For an ordinary RGB tangent normal, each stored channel decodes as component = byte / 127.5 − 1. Red represents X, green represents Y, and blue represents Z. The purple thumbnail is a display of this encoding rather than painted surface color. This normal map resizer performs no display-gamma conversion and does not premultiply vector components by alpha. Z remains a signed component; a negative hemisphere is not forcibly rebuilt into positive Z.
Why Ordinary RGB Resizing Can Be Wrong
An image editor may apply a color transform, premultiply transparent pixels, or export interpolated RGB without restoring unit length. Even when direct encoded-color interpolation is affine-equivalent to component interpolation, its resulting direction can have a shorter magnitude. Subsequent shading may then change strength or produce inconsistent behavior. The vector-aware pipeline makes decoding and normalization explicit instead of relying on undocumented image-editor assumptions. Supported numeric PNG decoding also retains hidden RGB at alpha-zero boundaries.
Downscaling vs Upscaling
Downscaling merges local directional variation into fewer samples. Bilinear samples four neighboring vectors at each destination pixel center; it is not an area filter and can alias very fine detail during large reductions. Nearest is useful for deliberate hard transitions but also loses information. Upscaling adds samples between existing directions, not real authored detail. Compare representative close and distant views after either operation, especially where narrow grooves or high-frequency patterns dominate.
Why Renormalization Matters
After interpolation, the normal map resizer divides the sampled vector by its Euclidean length. If the result is non-finite or shorter than 0.02, it uses the documented neutral fallback (0, 0, 1), approximately RGB 128, 128, 255. Opposing vectors can cancel even when both source directions were valid. A visible fallback count identifies those unstable samples. Eight-bit quantization means decoded exported lengths are close to one rather than mathematically exact.
Alpha Handling
Preserve Alpha samples the alpha channel with the selected spatial filter. Nearest copies the chosen sample; bilinear produces a weighted mask value. Disabling the option exports alpha 255 everywhere. RGB sampling is independent of this mask, including fully transparent texels, so the source's hidden directions can influence filtered edges. Inspect edge padding before scaling sprites or decals. The normal map resizer preserves or deliberately replaces alpha; it does not perform automatic dilation or reconstruct lost transparent RGB.
Texture Size Recommendations
Choose dimensions from UV coverage, expected camera distance, target hardware, and the amount of source detail. Presets select a long edge of 256, 512, 1024, 2048, or 4096 pixels and follow aspect lock; they are conveniences rather than universal quality recommendations. Output is bounded by 8192 pixels per side and 16,777,216 pixels total. A locked tall or wide image retains its proportions, while unlocking permits deliberate independent dimensions. Non-square normal textures are supported.
Mipmaps vs Source Resizing
Source resizing creates a new base-level PNG. Mipmaps are lower-resolution levels generated or supplied for distance-dependent sampling in the renderer. Using this normal map resizer does not install a custom mip chain, control engine compression, or guarantee that runtime filtering renormalizes directions. Inspect the engine's normal-map import path and mip generation. A clean base texture can still shimmer if high-frequency detail and anisotropic sampling do not match the material's scale.
Common Mistakes
Avoid resizing a packed two-channel normal format as though blue already held meaningful Z; decode that format first. Do not mistake a convention mismatch for a resolution problem, apply gamma to vector channels, or expect upscaling to restore baked detail. Changing image aspect without corresponding UV changes can stretch features even though vector lengths remain valid. If a spatial turn is also required, use the dedicated rotator so tangent X/Y directions change with the texel layout.
Rotate texture orientation and tangent directions togetherReview the Exported Asset
Download writes direct RGBA8 PNG bytes without display-gamma metadata or Canvas alpha premultiplication. The normal map resizer processes at the requested full output dimensions; the browser preview uses bounded samples for responsiveness. Reopen the exported image in the validator, then check lighting and silhouette expectations on the actual mesh. Compare an unchanged reference under the same light and retain the original source so later platform versions can use a different resolution without repeated resampling.
Check the resized PNG's vector lengthsFrequently Asked Questions
Does nearest sampling normalize too?
Yes. Both nearest and bilinear decode signed components and normalize each output vector. Malformed or near-zero source vectors therefore receive the same explicit fallback policy.
Does resizing change OpenGL to DirectX?
No. Sampling and normalization preserve the stored convention. The Y selector affects lighting interpretation only; use the converter for a deliberate convention change.
Does bilinear use all texels during a large reduction?
No. It samples four neighbors around each destination center. Large reductions of fine detail can alias; review the result and use an appropriate engine mip workflow.
Can I export a normal texture with negative Z?
Yes. Signed Z participates in interpolation and normalization. This tool does not reconstruct the positive hemisphere or assume every source direction faces forward.