Smarter video starts here! Explore tools for previews, smart cropping, and image-to-video creation. Explore the Q4 launch →
Libraries
Log In
    • Overview

    • Automatic
    • Adjustment
      • Brightness
      • Contrast
      • Exposure
      • Gamma
      • Highlight
      • Hue shift
      • Invert
      • Saturation
      • Shadow
      • Sharpen
      • Unsharp Mask
      • Unsharp Mask Radius
      • Vibrance
    • Animation
      • Animated Loop Count
      • Frame Interval
      • Frame Selection
      • Frame Skip
      • Frames Per Second
      • Reverse
    • Background
      • Background Removal
      • Background Removal Add Shadow
      • Background Removal Fallback
      • Background Removal Foreground Type
      • Background Removal Semi-Transparency
      • Background Removal Transparency Threshold
      • Background Replacement
      • Background Replacement Fallback
      • Background Replacement Negative Prompt
    • Blending
      • Blend
      • Blend Align
      • Blend Alpha
      • Blend Color
      • Blend Crop
      • Blend Fit
      • Blend Height
      • Blend Mode
      • Blend Padding
      • Blend Size
      • Blend Width
      • Blend X Position
      • Blend Y Position
    • Border & Padding
      • Border Bottom
      • Border Left
      • Border Right
      • Border Size Color
      • Border Stroke Color
      • Border Stroke Size
      • Border Top
      • Inner Border Radius
      • Outer Border Radius
      • Padding
      • Padding Bottom
      • Padding Left
      • Padding Right
      • Padding Top
    • Color Palette
      • Color Palette Extraction
      • CSS Prefix
      • Palette Color Count
    • Device Pixel Ratio
    • Expiration Timestamp
    • Face Detection
      • Face Blur
      • Face Index
      • Face Padding
      • Face Pixelation
      • JSON Face Data
    • Fill
      • Background Color
      • Fill Color
      • Fill Generative Fallback
      • Fill Generative Negative Prompt
      • Fill Generative Position
      • Fill Generative Prompt
      • Fill Generative Seed
      • Fill Gradient Color Space
      • Fill Gradient Linear
      • Fill Gradient Linear Direction
      • Fill Gradient Radial
      • Fill Gradient Radial Radius
      • Fill Gradient Radial X
      • Fill Gradient Radial Y
      • Fill Gradient Type
      • Fill Mode
      • Grid Colors
      • Grid Size
      • Transparency
    • Focal Point Crop
      • Focal Point Debug
      • Focal Point X Position
      • Focal Point Y Position
      • Focal Point Zoom
    • Format
      • Chroma Subsampling
      • Client Hints
      • Color Quantization
      • Color Space
      • Dots Per Inch
      • Download
      • IPTC Passthrough
      • JPG Progressive
      • Lossless Compression
      • Output Format
      • Output Quality
      • Rasterize Bypass
      • Sanitize SVG
    • Generative AI Endpoint
      • Text to Image
      • Text to Image Seed
    • License Plate Detection
      • License Plate Blur
    • Mask Image
      • Mask Background Color
      • Mask Corner Radius
      • Mask Type
    • Noise Reduction
      • Noise Reduction Bound
      • Noise Reduction Sharpen
    • Object Manipulation
      • Object Removal
      • Object Removal Negative Prompt
      • Object Removal Prompt
      • Object Removal Seed
    • PDF
      • PDF Annotation
      • PDF Page Number
    • Rotation
      • Flip Axis
      • Orientation
      • Rotation
      • Rotation Type
    • Size
      • Aspect Ratio
      • Crop Mode
      • Image Height
      • Image Width
      • Maximum Height
      • Maximum Width
      • Minimum Height
      • Minimum Width
      • Resize Fit Mode
      • Source Rectangle Region
    • Stylize
      • Duotone
      • Duotone Alpha
      • Gaussian Blur
      • Halftone
      • Halftone Direct To Film
      • Halftone Direct To Film Angle
      • Monochrome
      • Pixellate
      • Sepia Tone
    • Super Resolution
      • Upscale
      • Upscale Fallback
      • Upscale If Max Height
      • Upscale If Max Width
    • Text
      • Text Align
      • Text Clipping Mode
      • Text Color
      • Text Fit Mode
      • Text Font
      • Text Font Size
      • Text Outline
      • Text Outline Color
      • Text Padding
      • Text Shadow
      • Text String
      • Text Width
      • Text X Position
      • Text Y Position
    • Trim
      • Trim Alpha
      • Trim Color
      • Trim Image
      • Trim Mean Difference
      • Trim Padding
      • Trim Standard Deviation
      • Trim Tolerance
    • Typesetting Endpoint
      • Text Leading
      • Text Tracking
      • Typesetting Endpoint
    • Watermark
      • Watermark Alignment Mode
      • Watermark Alpha
      • Watermark Base URL
      • Watermark Fit Mode
      • Watermark Height
      • Watermark if Minimum Height
      • Watermark if Minimum Width
      • Watermark Image URL
      • Watermark Padding
      • Watermark Rotation
      • Watermark Scale
      • Watermark Tile
      • Watermark Width
      • Watermark X Position
      • Watermark Y Position

    • Overview

    • Audio
      • Audio Denoise
      • Audio EQ
      • Audio Fade In
      • Audio Fade Out
      • Audio Normalization
      • Mute
      • Volume
    • Audio Waveforms
      • Waveform Overlay
      • Waveform Alignment
      • Waveform Amplitude
      • Waveform Background Color
      • Waveform Color
      • Waveform Draw Mode
      • Waveform Filter
      • Waveform Height
      • Waveform Mode
      • Waveform Mono Downmix
      • Waveform Padding
      • Waveform Samples
      • Waveform Scale
      • Waveform Split Channels
      • Waveform Thickness
      • Waveform Width
      • Waveform X Position
      • Waveform Y Position
    • Clip
      • Video Clip Duration
      • Video Clip End
      • Clip Ranges
      • Video Clip Start
    • Video Encoding
      • Video Quality
      • Enhanced Quality Target
      • Video Auto Quality
      • Video Bitrate
      • Video Codec
      • Multi-Codec Output
      • ABR Rendition Ladder
    • Format
      • Frames Per Second
      • Frame Generation
      • Video Format
      • Frame Interpolation
      • Manifest Variant Selector
      • Segment Selector
      • Video Thumbnail
      • HDR Tone Mapping
    • Image to Video
      • Motion
      • Motion Duration
      • Motion Model
      • Motion Seed
    • Playback
      • Boomerang
      • Loop Count
      • Reverse
    • Video Preview
      • Video Preview
      • Video Preview Duration
      • Video Preview Segment Duration
    • Size
      • Fit
      • Center Crop
      • Video Height
      • Video Source Rectangle Region
      • Video Width
    • Spritesheets
      • Video Spritesheet Columns
      • Video Spritesheet Format
      • Video Spritesheet Height
      • Video Spritesheet Interval
      • Spritesheet Page
      • Video Spritesheet Smart Crop
      • Video Spritesheet Width
    • Subtitles
      • Caption Alignment
      • Caption Bounce Animation
      • Caption Build Animation
      • Caption Color
      • Caption Embed VTT
      • Caption Font
      • Caption Highlight Color
      • Caption Horizontal Margin
      • Caption Vertical Margin
      • Caption Size
      • Caption Stay Highlighted
      • Caption Style
      • Subtitle Generation
      • Subtitle Source Language
      • Subtitle Translation
      • VTT Track Language
    • Text Overlays
      • Text Content
      • Text Alignment
      • Text Opacity
      • Text Background Color
      • Text Color
      • Text Direction
      • Text Fit Mode
      • Text Font
      • Text Gradient
      • Text Gradient Angle
      • Text Height
      • Text Line Height
      • Text Padding
      • Text Background Radius
      • Text Rotation
      • Text Shadow Blur
      • Text Size
      • Text Style
      • Text Width
      • Text Weight
      • Text X Position
      • Text Y Position
      • Text Overlay End Time
      • Text Overlay Start Time
      • Text Overlay Transition
    • Video Picture-in-Picture
      • PiP Video Source
      • PiP Alignment
      • PiP Opacity
      • PiP Audio
      • PiP Base URL
      • PiP End Time
      • PiP End-of-File Behavior
      • PiP Fit Mode
      • PiP Height
      • PiP Loop
      • PiP Padding
      • PiP Start Time
      • PiP Entry Transition
      • PiP Transition Duration
      • PiP Audio Volume
      • PiP Width
      • PiP X Position
      • PiP Y Position
    • Video Speed
    • Watermark
      • Watermark Image URL
      • Watermark Alignment Mode
      • Watermark Alpha
      • Watermark Base URL
      • Watermark Height
      • Watermark Padding
      • Watermark Width
      • Watermark X Position
      • Watermark Y Position

    • Overview
    • Video Generation
    • Alt Text Generation

    • Overview
    • General Usage
    • API Playground

    • Assets
    • Purges
    • Reports
    • Sources
Imgix APIsRendering APITextText Outline

Text Outline

txt-line

Standard render

Sets the width of the outline to draw around the text.

By default, this value is 0, which draws no outline. If defined, the outline is drawn inside the edges of the text.

Text Font SizeText Outline Color

Footer

Loading status...
FacebookXLinkedInInstagram

Navigation

  • Home
  • Solutions
  • Pricing
  • Customers
  • Why Imgix?

Developers

  • Docs
  • Setup
  • Guides
  • Tutorials
  • API Reference

Company

  • Blog
  • About
  • Careers
  • Press Kit
  • Partners

Tools

  • imgix.js
  • Sandbox
  • Page Weight

Support

  • Contact Sales
  • Email Support
  • Service Status

Policies

  • Terms of Use
  • Privacy
  • Payments
  • IP

© 2026 Imgix