Resize Image - Smart Scaler API
PDF4me Resize Image is a powerful enterprise-grade solution that resizes images with precise control through advanced API integration. This comprehensive image resizing service efficiently processes image files, providing percentage-based or specific dimension resizing, aspect ratio preservation, intelligent scaling algorithms, and advanced image processing capabilities for enhanced image optimization and content management. The API processes image resizing by receiving source images through REST API calls, utilizing advanced scaling technology and intelligent dimension algorithms for accurate image resizing and professional image processing. With comprehensive support for multiple resizing methods, precise dimension control, aspect ratio preservation, and professional image processing, this solution is ideal for image optimization, content management, automated resizing, and enterprise image workflows that require reliable image scaling with guaranteed accuracy and consistent output quality. Resize Image documents easily with API for advanced image processing and optimization.
Authenticating Your API Request
To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.
Key Features
- Dual Resizing Methods: Support for both percentage-based and specific dimension resizing
- Aspect Ratio Preservation: Maintain image proportions with intelligent aspect ratio control
- Precise Dimension Control: Specify exact width and height for optimal image sizing
- Quality Preservation: Maintain image quality during resizing operations
- Format Support: Support for various image formats including JPG, PNG, BMP, TIFF, and more
- Professional Results: High-quality image resizing with accurate dimension control
- Seamless API Integration: RESTful API designed for automated image processing workflows and enterprise system integration
REST API Endpoint
The PDF4me REST API uses standard HTTP methods to interact with resources. All image resizing operations are performed through a single endpoint:
- Method: POST
- Endpoint:
/api/v2/ResizeImage?schemaVal=Percentange
Supported Image Resizing Features
The API provides comprehensive support for various image resizing and optimization capabilities:
Resizing Methods
- Percentage-Based: Resize images by percentage for proportional scaling
- Specific Dimensions: Resize images to exact width and height specifications
- Precise Control: Accurate dimension control with pixel-perfect resizing
- Professional Results: High-quality image resizing with accurate dimension control
- Advanced Processing: Support for complex image structures and resizing requirements
Aspect Ratio Control
- Aspect Ratio Preservation: Maintain image proportions with intelligent aspect ratio control
- Flexible Scaling: Support for both proportional and non-proportional resizing
- Quality Maintenance: Preserve image quality during aspect ratio adjustments
- Professional Layout: High-quality image resizing with accurate proportion control
- Advanced Processing: Support for various aspect ratios and scaling scenarios
Image Processing
- Quality Preservation: Maintain image quality during resizing operations
- Format Support: Support for various image formats and file types
- Professional Enhancement: High-quality image processing with accurate resizing
- Flexible Options: Customizable processing parameters for specific requirements
REST API Parameters
Complete list of parameters for the Resize Image REST API. Parameters are organized by category for better understanding and implementation.
Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| docName* | String | The source image filename with proper file extension for image resizing operations. This parameter identifies the input image for resizing processing, dimension control, and optimization workflows. Required for image identification and processing pipeline management in image resizing operations. | stamp.jpg |
| docContent* | Base64 | The complete content of the source image encoded in Base64 format for image resizing processing. This parameter contains the entire image data required for resizing, dimension control, and optimization workflows. Essential for secure image handling and API-based image resizing operations. | JVBERi... |
| Image Resize Type* | String | Select the resizing method for image processing operations. Choose from Percentage for proportional scaling or Specific for exact dimension control. This parameter determines the resizing strategy and ensures proper image scaling for different optimization requirements. | Percentage |
| Resize Percentage* | Decimal | Specify the resizing percentage as a decimal value for proportional image scaling. This parameter controls the scaling factor for percentage-based resizing operations. Use decimal values like "20.1010" for precise percentage control and proportional image scaling in resizing workflows. | 20.1010 |
| Width* | Integer | Specify the target width in pixels for specific dimension resizing operations. This parameter controls the horizontal dimension of the resized image. Use integer values for precise width control and optimal image sizing in specific dimension resizing workflows. | 60 |
| Height* | Integer | Specify the target height in pixels for specific dimension resizing operations. This parameter controls the vertical dimension of the resized image. Use integer values for precise height control and optimal image sizing in specific dimension resizing workflows. | 60 |
| Maintain Aspect Ratio* | Boolean | Control whether to preserve the original image aspect ratio during resizing operations. Set to 'true' to maintain proportional scaling, or 'false' to allow non-proportional resizing. This parameter ensures proper image proportions and prevents distortion during resizing operations. | true |
Output
The PDF4me Resize Image REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
{
"File Content": "Output file content from the PDF4me Connect"
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| File Content | Output file content from the PDF4me Connect |
Schema View
The data structure and types of the response:
1 item
File Content: Binary Output file content from the PDF4me Connect
Type Indicators:
Binary= Binary data
Binary Data View
The actual resized image file data:
data
─────────────────────────────
File Content: Output file content from the PDF4me Connect
Binary Data Access:
- Image Content: Ready for download or further processing
- Resized Image: Complete image with applied resizing
Request Example
Header
Content-Type: application/json
Authorization: YOUR_API_KEY
Note: Get your API key from the PDF4me Dashboard
Payload
{
"docName": "stamp.jpg",
"docContent": "Please put image base64 content",
"ImageResizeType": "Percentage",
"ResizePercentage": "20.1010",
"Width": 60,
"Height": 60,
"MaintainAspectRatio": true
}
Code Samples
The PDF4me Resize Image REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:
- C#
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda
Google Script Sample
Google Apps Script implementation for Google Workspace integration:
Image Resizing Features
Resizing Methods
- Percentage-Based: Resize images by percentage for proportional scaling
- Specific Dimensions: Resize images to exact width and height specifications
- Precise Control: Accurate dimension control with pixel-perfect resizing
- Professional Results: High-quality image resizing with accurate dimension control
- Advanced Processing: Support for complex image structures and resizing requirements
Aspect Ratio Control
- Aspect Ratio Preservation: Maintain image proportions with intelligent aspect ratio control
- Flexible Scaling: Support for both proportional and non-proportional resizing
- Quality Maintenance: Preserve image quality during aspect ratio adjustments
- Professional Layout: High-quality image resizing with accurate proportion control
- Advanced Processing: Support for various aspect ratios and scaling scenarios
Image Processing
- Quality Preservation: Maintain image quality during resizing operations
- Format Support: Support for various image formats and file types
- Professional Enhancement: High-quality image processing with accurate resizing
- Flexible Options: Customizable processing parameters for specific requirements
Industry Use Cases & Applications
- Use Cases
Use Cases
- Image Optimization: Resize images for web performance and storage optimization
- Content Management: Resize images for different display requirements and platforms
- Social Media: Resize images for specific social media platform requirements
- E-commerce: Resize product images for different catalog and display sizes
- Web Development: Resize images for responsive design and optimal loading
- Print Production: Resize images for specific print dimensions and quality requirements
- Mobile Applications: Resize images for different screen sizes and resolutions
- Business Process Automation: Automate image resizing workflows for enterprise operations