Visual Content Generation

Generate QR codes, barcodes, and convert images. Create scannable codes for payments, inventory, and marketing.

Quick Reference: All requests go to POST /api/services/execute with your API key in the Authorization: Bearer YOUR_API_KEY header.


QR Code Generation

Service: qr-code-generator

Generate QR codes for URLs, contact info, WiFi credentials, or any text. Returns PNG or SVG format.

Generate Payment QR Code

Create a QR code linking to a payment page for invoices or receipts.

curl -X POST https://www.acrewity.com/api/services/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service": "qr-code-generator",
    "operation": "generate_qr",
    "parameters": {
      "text": "https://pay.example.com/invoice/INV-2024-0892",
      "format": "png",
      "size": 300
    }
  }'

Create WiFi Sharing QR Code

Generate a QR code guests can scan to connect to your WiFi.

// JavaScript - WiFi QR code
const wifiConfig = 'WIFI:T:WPA;S:GuestNetwork;P:welcome123;;';

const response = await fetch('https://www.acrewity.com/api/services/execute', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    service: 'qr-code-generator',
    operation: 'generate_qr',
    parameters: {
      text: wifiConfig,
      format: 'svg',
      size: 256
    }
  })
});

Use Cases:

Restaurant Menus

Generate QR codes linking to digital menus for contactless ordering.

Event Check-in

Create unique QR codes for event tickets that can be scanned at entry.

Business Cards

Generate vCard QR codes that add your contact info when scanned.

App Downloads

Link to app store pages for easy mobile app installation.


Barcode Generation

Service: barcode-generator

Generate various barcode formats including Code128, EAN-13, UPC-A, and more. Essential for inventory and retail systems.

Generate Product Barcode for Inventory

Create Code128 barcodes for warehouse inventory labels.

curl -X POST https://www.acrewity.com/api/services/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service": "barcode-generator",
    "operation": "generate_barcode",
    "parameters": {
      "text": "SKU-2024-78432",
      "format": "code128",
      "width": 200,
      "height": 80
    }
  }'

Generate Retail Product Barcode

Create an EAN-13 barcode for retail products.

// JavaScript - Generate EAN-13 barcode
const response = await fetch('https://www.acrewity.com/api/services/execute', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    service: 'barcode-generator',
    operation: 'generate_barcode',
    parameters: {
      text: '5901234123457',
      format: 'ean13',
      width: 200,
      height: 100,
      displayValue: true
    }
  })
});

const { result } = await response.json();
// result.data.barcode contains base64-encoded PNG

Use Cases:

Shipping Labels

Generate tracking barcodes for packages and shipments.

Product Labels

Create EAN-13 or UPC-A barcodes for retail products.


Image Format Conversion

Service: image-converter

Convert images between formats (PNG, JPEG, WebP, GIF) with quality control. Optimize images for web or create thumbnails.

Convert PNG to WebP for Web Optimization

Reduce image file size by converting to WebP format.

# Python - Optimize image for web
import requests
import base64

with open('hero-image.png', 'rb') as f:
    image_base64 = base64.b64encode(f.read()).decode()

response = requests.post(
    'https://www.acrewity.com/api/services/execute',
    headers={
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'service': 'image-converter',
        'operation': 'convert_image',
        'parameters': {
            'file': image_base64,
            'format': 'webp',
            'quality': 85
        }
    }
)

# Alternatively, convert from URL:
response = requests.post(
    'https://www.acrewity.com/api/services/execute',
    headers={
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'service': 'image-converter',
        'operation': 'convert_image',
        'parameters': {
            'imageUrl': 'https://example.com/images/hero.png',
            'format': 'webp',
            'quality': 85
        }
    }
)

Create JPEG Thumbnail from PNG

Convert and resize an image for use as a thumbnail.

curl -X POST https://www.acrewity.com/api/services/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service": "image-converter",
    "operation": "convert_image",
    "parameters": {
      "imageUrl": "https://example.com/large-image.png",
      "format": "jpeg",
      "quality": 80,
      "width": 300,
      "height": 200
    }
  }'

Use Cases:

Upload Processing

Convert user-uploaded images to a consistent format for storage.

CDN Optimization

Convert images to WebP for faster page loads.


Related Services