Flip Image - Mirror & Orientation API
PDF4me Flip Image is a powerful enterprise-grade solution that flips images horizontally or vertically through advanced API integration. This comprehensive image flipping service efficiently processes image files, providing precise orientation control, flexible flipping options, and advanced image processing capabilities for enhanced image correction and content optimization. The API processes image flipping by receiving source images through REST API calls, utilizing advanced transformation technology and intelligent orientation algorithms for accurate image manipulation and professional image processing. With comprehensive support for horizontal and vertical flipping, precise orientation control, and professional image processing, this solution is ideal for image correction, content optimization, automated flipping, and enterprise image workflows that require reliable image transformation with guaranteed accuracy and consistent output quality. Flip Image documents easily with API for advanced image processing and transformation.
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 Orientation Control: Support for both horizontal and vertical image flipping
- Precise Transformation: Accurate image flipping with pixel-perfect orientation control
- Format Support: Support for various image formats and file types
- Quality Preservation: Maintain image quality during flipping operations
- Flexible Processing: Support for different image sizes and aspect ratios
- Professional Results: High-quality image flipping with accurate orientation 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 flipping operations are performed through a single endpoint:
- Method: POST
- Endpoint:
/api/v2/FlipImage
Supported Image Flipping Features
The API provides comprehensive support for various image flipping and transformation capabilities:
Flipping Options
- Horizontal Flipping: Flip images horizontally (left-to-right mirroring)
- Vertical Flipping: Flip images vertically (top-to-bottom mirroring)
- Precise Control: Accurate image transformation with pixel-perfect orientation
- Professional Results: High-quality flipping with accurate orientation control
- Advanced Processing: Support for complex image structures and transformation requirements
Image Processing
- Quality Preservation: Maintain image quality during flipping operations
- Format Support: Support for various image formats and file types
- Professional Enhancement: High-quality image processing with accurate transformation
- Flexible Options: Customizable processing parameters for specific requirements
Orientation Control
- Flexible Orientation: Support for both horizontal and vertical flipping directions
- Precise Transformation: Accurate image flipping with orientation control
- Professional Layout: High-quality image transformation with accurate positioning
- Advanced Processing: Support for various image sizes and flipping scenarios
REST API Parameters
Complete list of parameters for the Flip 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.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| jobIdExt | Optional | Your own reference for this call. It is stored with the API call log so you can correlate calls with your jobs. Type: string. | |
| integrations | Optional | Integration identifiers, forwarded unchanged with the job's notification settings. Type: array. | |
| isAsync | Optional | Set to `true` to process the action asynchronously and get a job to poll at `/api/v2/GetActionStatus`. Only honoured by actions that support asynchronous processing. Type: boolean. | |
| docName | Optional | Source file name including its extension. Several actions dispatch on the extension, so it should always be set; when omitted a per-action default is used. Type: string. | image.jpg |
| docContent | Required | The source file. Accepts the base64-encoded file content, a `pdf4meblobid://<id>` reference to a previously uploaded blob, or an `https` URL to the source document. Required: an empty value fails with `File is empty`. Type: string. | JVBERi... |
| docContentBytes | Optional | Alternative raw byte payload for the source file. Type: string. | |
| callBackUrl | Optional | Optional URL notified when an asynchronous job completes. Type: string. | |
| orientationType | Optional | Matched case-insensitively; an unrecognised value falls back to the first entry. Type: string. | |
Output
The PDF4me Flip 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 flipped image file data:
data
─────────────────────────────
File Content: Output file content from the PDF4me Connect
Binary Data Access:
- Image Content: Ready for download or further processing
- Flipped Image: Complete image with applied flipping transformation
Request Example
Header
Content-Type: application/json
Authorization: YOUR_API_KEY
Note: Get your API key from the PDF4me Dashboard
Payload
{
"docContent": "Please put image base64 content",
"docName": "image.jpg",
"Jenis orientasi": "horizontal"
}
Code Samples
The PDF4me Flip 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 Flipping Features
Flipping Options
- Horizontal Flipping: Flip images horizontally (left-to-right mirroring)
- Vertical Flipping: Flip images vertically (top-to-bottom mirroring)
- Precise Control: Accurate image transformation with pixel-perfect orientation
- Professional Results: High-quality flipping with accurate orientation control
- Advanced Processing: Support for complex image structures and transformation requirements
Image Processing
- Quality Preservation: Maintain image quality during flipping operations
- Format Support: Support for various image formats and file types
- Professional Enhancement: High-quality image processing with accurate transformation
- Flexible Options: Customizable processing parameters for specific requirements
Orientation Control
- Flexible Orientation: Support for both horizontal and vertical flipping directions
- Precise Transformation: Accurate image flipping with orientation control
- Professional Layout: High-quality image transformation with accurate positioning
- Advanced Processing: Support for various image sizes and flipping scenarios
Industry Use Cases & Applications
- Use Cases
Use Cases
- Image Correction: Fix incorrectly oriented images for proper display
- Content Optimization: Flip images for better visual presentation and layout
- Social Media: Adjust image orientation for platform-specific requirements
- E-commerce: Correct product image orientation for online stores
- Web Design: Flip images for responsive design and layout optimization
- Photography: Post-process images by flipping for better composition
- Documentation: Correct image orientation in technical documentation
- Business Process Automation: Automate image flipping workflows for enterprise operations