An Azure service to easily conduct machine translation with a simple REST API call.
Azure Document Translation does not expose controls for minimum font size, wrapping, overflow, text color, weight, contrast, or output rendering resolution, so applications that require predictable typography must extract, translate, and render the text themselves.
Current image-rendering behavior
For 2025-12-01-preview, image translation uses the normal batch request. Its documented request fields cover source and target locations, languages, category, glossaries, and storage settings—there are no typography or image-rendering properties ^1^.
Consequently:
- Font size: There is no parameter to set a minimum, permit overflow, or select wrapping behavior.
- Color and contrast: The service does not document how it selects the rendered color, nor an option to override it.
- Long translations: Microsoft documents that changes in translated-text length can affect layout and cause reflow or shifting. Font substitution can also occur when the source font does not support the target language ^2^.
- Grey output: Anti-aliasing, source resolution, compression, or service-side reconstruction could potentially affect appearance, but the published behavior does not identify which one causes grey text. The output alone is insufficient to attribute a specific cause.
A TSV glossary controls terminology, not visual rendering.
Recommended production workaround
Use a controlled OCR → translation → rendering pipeline:
- Run Azure Vision Read OCR on the original image to obtain text and its location.
- Translate the extracted strings with Azure Translator.
- Remove or mask each original text region.
- Draw the translated text yourself, implementing:
- minimum font size;
- explicit foreground color and contrast;
- target-language fonts;
- line wrapping;
- box expansion or overflow;
- high-resolution antialiasing.
- Add review or fallback handling where text cannot fit without obscuring important image content.
Microsoft explicitly describes sequencing Computer Vision text extraction with Translator for image-text scenarios ^3^.
A typical fitting policy is:
font_size = original_font_size
lines = wrap(translated_text, box_width, font_size)
while text_height(lines, font_size) > box_height:
if font_size <= minimum_font_size:
box_height = expand_box_or_enable_overflow()
break
font_size -= 1
lines = wrap(translated_text, box_width, font_size)
draw_text(lines, color="#000000", font_size=font_size)
The OCR coordinates do not necessarily preserve the original font family, size, or exact background. Those properties may need to be estimated from pixel measurements or supplied from the originating Word/PowerPoint objects.
Resolution and preprocessing
Document Translation does not publish a minimum text height or recommended DPI specifically for standalone image translation. Do not treat an undocumented threshold as a service guarantee.
Azure Vision Read OCR provides a useful benchmark for a custom pipeline: images must be at least 50 × 50 pixels, and its documented minimum text height is 12 pixels for a 1024 × 768 image—approximately 8-point text at 150 DPI ^4^. OCR accuracy can also be affected by resolution, contrast, lighting, rotation, text size, color, and density ^5^.
Prefer these preprocessing changes:
- Export directly from Word or PowerPoint at a higher native resolution.
- Prefer lossless PNG for screenshots, diagrams, and flat-color text. JPEG is lossy, while PNG uses lossless compression ^1^.
- Increase text pixel height at export rather than enlarging an already-small raster image.
- Preserve strong foreground/background contrast.
- Avoid sharpening or thresholding that damages thin character strokes.
Upscaling may improve OCR when the original text is genuinely too small, but interpolation cannot recreate missing detail and there is no documented evidence that it changes Document Translation’s chosen output color or font size.
Test the GA API separately
Image translation became GA in Document Translation 2026-03-01, including standalone images and images embedded in Word and PowerPoint ^6^. Test representative files against that version before retaining the preview API, because rendering may differ. The GA schema still does not document typography controls.
If the source .docx or .pptx files remain available, another test is submitting those originals with translateTextWithinImage: true rather than exporting each image first ^7^. This may preserve the surrounding Office layout better, but it does not provide font-size or color controls.
If GA produces the same unreadable output, retain the smallest reproducible source/output pair and open an Azure support request as a rendering-quality issue. Include the API version, region, source and target languages, dimensions, format, text pixel height, and whether PNG and high-resolution export produce the same result.
References
- Start batch translation
- Document Translation frequently asked questions
- Azure Translator in Foundry Tools Transparency Note
- OCR - Optical Character Recognition
- Capabilities and limitations of optical character recognition
- What is Azure Translator document translation 2026-03-01?
- Start an asynchronous batch translation