Featured Solutions

  • Video Optimization

  • Image Optimization

  • Visual Media CDN

  • Asset Management

  • See All Solutions

Success Stories

  • Social and Sharing

  • E-Commerce

  • News and Media

  • See All

Documentation

  • Setup

  • imgix Tutorials

  • Management API

  • Rendering API

  • Libraries

  • See All

Setup Guide

  • Getting Started

  • Serving Images

  • Creating Sources

  • See All

  • Sandbox URL Inspector

  • imgix.js

Learn More About Us

  • About imgix

  • Partners

  • Careers

  • Press

Latest Blog Posts

    • Solutions
    • Customers
    • Pricing
    • Developers
    • Company
    Sign In Sign Up Contact Us
    • Solutions
    • Blog
    • About Us
    • Careers
    • Contact Us
    • Customers
    • Pricing
    • Developers
    • Sign In
    • Sign Up
    • Solutions
    • Developers
    • Pricing
    • Careers
    • Blog
    • About Us
    • Customers
    • Contact Us
    • Solutions
    • Video Optimization
    • Image Optimization
    • Visual Media CDN
    • Asset Management
    • View More
    • Developers
    • API Reference
    • Setup Guide
    • Creating Sources
    • Client Libraries
    • View More
    • Company
    • Blog
    • About Us
    • Press Kit
    • Careers
    • Contact Us

    Rendering API

    1. Documentation
    2. imgix APIs
    3. Rendering API
    4. Text
    5. Text Padding
    • Adjustment
        Brightness Contrast Exposure Gamma Highlight Hue Shift Invert Saturation Shadow Sharpen Unsharp Mask Unsharp Mask Radius Vibrance
    • Animation
        Animated Gif Quality Animation Loop Count Frame Interval Frame Selection Frame Skip Frames Per Second Reverse
    • Automatic
    • Background Removal
    • 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 Top Inner Border Radius Outer Border Radius Padding Padding Bottom Padding Left Padding Right Padding Top
    • Color Palette
        CSS Prefix Color Palette Extraction Palette Color Count
    • Expiration
    • Face Detection
        Face Index Face Padding JSON Face Data
    • Fill
        Background Color Fill Color 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 Lossless Compression Output Format Output Quality
    • Mask Image
        Mask Background Color Mask Corner Radius Mask Type
    • Noise Reduction
        Noise Reduction Bound Noise Reduction Sharpen
    • PDF
        Pdf Annotation Pdf Page Number
    • Pixel Density
    • Rotation
        Flip Axis Orientation Rotation
    • 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 Monochrome Pixellate Sepia Tone
    • Text
        Text Align Text Clipping Mode Text Color Text Fit Mode Text Font Text Font Size Text Ligatures Text Outline Text Outline Color Text Padding Text Shadow Text String Text Width Text X Position Text Y Position
    • Trim
        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 Image URL Watermark Padding Watermark Rotation Watermark Scale Watermark Tile Watermark Width Watermark X Position Watermark Y Position

    Text Padding txt-pad

    The amount of spacing (in pixels) to add around the text.

    The default is 10.

    See the API specification for more information about this parameter's value ranges and format.


    Other Text Methods

    • txt-align

      Text Align

    • txt-clip

      Text Clipping Mode

    • txt-color

      Text Color

    • txt-fit

      Text Fit Mode

    • txt-font

      Text Font

    • txt-lig

      Text Ligatures

    • txt-line-color

      Text Outline Color

    • txt-line

      Text Outline

    • txt-shad

      Text Shadow

    • txt-size

      Text Font Size

    • txt-width

      Text Width

    • txt-x

      Text X Position

    • txt-y

      Text Y Position

    • txt

      Text String

    © 2011 - 2023 Zebrafish Labs

    support@imgix.com
    • Navigation
    • Home
    • Solutions
    • Pricing
    • Customers
    • Why imgix?
    • Developers
    • Docs
    • Setup
    • Guides
    • Tutorials
    • API Reference
    • Company
    • Blog
    • About
    • Careers
    • Press Kit
    • Partners
    • Support
    • Help Center
    • Contact
    • Service Status
    • Users
    • Sign In
    • Sign Up
    • Tools
    • imgix.js
    • Sandbox
    • Page Weight
    • Policies
    • Terms of Use
    • Privacy
    • Payments
    • IP