> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moonly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Convert image to different format

> Convert images between formats while optionally resizing and optimizing.



## OpenAPI

````yaml openapi.json post /utils/media/images/convert
openapi: 3.0.0
info:
  title: Aurora Database API
  description: >-
    Comprehensive database management API providing dynamic database
    connections, real-time table operations, advanced querying, and transaction
    logging. Supports both managed PostgreSQL databases and external database
    connections with full CRUD operations.
  contact:
    name: Aurora Development Team
    email: support@aurora.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: '1.0'
servers:
  - url: /api
    description: Aurora API Server
security:
  - sanctum: []
tags:
  - name: Database Management
    description: >-
      🗄️ **Create, manage, and connect databases** - Start here to set up your
      PostgreSQL databases or connect to existing ones. These endpoints let you
      create managed databases, test connections, and handle basic database
      operations.
  - name: Table Operations
    description: >-
      📊 **Design your data structure** - Build and manage tables within your
      databases. Create tables with custom names, get table information, and
      organize your data structure exactly how you need it.
  - name: Column Management
    description: >-
      🏗️ **Define your data fields** - Add columns to your tables with various
      data types like text, numbers, dates, and more. Configure column
      properties, validation rules, and organize your data schema.
  - name: Formula Management
    description: >-
      🧮 **Create calculated fields** - Build dynamic Formula columns that
      automatically calculate values based on other columns in your table.
      Perfect for CRM calculations like deal values, commissions, and lead
      scoring.
  - name: Data Operations
    description: >-
      📝 **Work with your data** - The core endpoints for managing your actual
      data. Insert new records, update existing ones, delete data, and retrieve
      information with powerful filtering and search capabilities.
  - name: Advanced Queries
    description: >-
      🔍 **Powerful data analysis** - Advanced querying capabilities including
      complex filtering, aggregations, grouping, and custom search operations.
      Perfect for analytics and reporting.
  - name: Transaction History
    description: >-
      📋 **Audit and monitoring** - Track all changes and operations performed
      on your databases. View transaction logs, get statistics, and maintain a
      complete audit trail of your data operations.
  - name: Account
    description: Account
  - name: Agents
    description: Agents
  - name: Agents - Skills
    description: Agents - Skills
  - name: Agents - Tools
    description: Agents - Tools
  - name: Agents - Runs
    description: Agents - Runs
  - name: Row Comments
    description: Row Comments
  - name: Bulk Data Operations
    description: Bulk Data Operations
  - name: Browser Utilities
    description: Browser Utilities
  - name: Utility Management
    description: Utility Management
  - name: File Utilities
    description: File Utilities
  - name: Image Utilities
    description: Image Utilities
  - name: Media Utilities
    description: Media Utilities
  - name: Vector Collections
    description: Vector Collections
  - name: Vector Store
    description: Vector Store
  - name: Vector Points
    description: Vector Points
  - name: Vector Search
    description: Vector Search
paths:
  /utils/media/images/convert:
    post:
      tags:
        - Image Utilities
      summary: Convert image to different format
      description: Convert images between formats while optionally resizing and optimizing.
      operationId: imageConvert
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              required:
                - format
              properties:
                image:
                  description: The image file
                  type: string
                  format: binary
                url:
                  description: 'Alternative: URL of image'
                  type: string
                  format: uri
                format:
                  description: Target format
                  type: string
                  enum:
                    - jpg
                    - png
                    - webp
                    - gif
                    - avif
                  example: webp
                quality:
                  type: integer
                  maximum: 100
                  minimum: 1
                  example: 90
                width:
                  type: integer
                  example: 1920
                height:
                  type: integer
                  example: 1080
                keep_forever:
                  type: boolean
                  example: false
              type: object
      responses:
        '200':
          description: Image converted successfully
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    properties:
                      url:
                        type: string
                      original_format:
                        type: string
                      target_format:
                        type: string
                      width:
                        type: integer
                      height:
                        type: integer
                      size_kb:
                        type: number
                      activity_id:
                        type: string
                        format: uuid
                    type: object
                type: object
      security:
        - sanctum: []
components:
  securitySchemes:
    sanctum:
      type: apiKey
      description: Enter token in format (Bearer <token>)
      name: Authorization
      in: header

````