Free HTML to APK
← Todas las plantillas
🗜️
Multimedia

Plantilla de app Compresor de fotos

Elige una foto, redúcela de forma nativa con controles de tamaño y calidad, y luego guárdala o compártela.

MultimediaFunciona sin conexión5 funciones del teléfono

✏️ Editar y compilar en línea Abrir en pantalla completa

Esta es la plantilla funcionando en vivo. Las funciones del teléfono, como la cámara, la vibración y las notificaciones, funcionan en la app que compilas.

Funciones del teléfono que usa esta plantilla

Vienen del puente JavaScript de FreeApp que incluye cada app creada con Free HTML to APK. En un navegador normal la plantilla funciona igual, y las llamadas simplemente no hacen nada.

Elegir archivos

FreeApp.pickFile()

Compresión de imágenes

FreeApp.compressImage()

Nativo, rápido en teléfonos de gama baja.

Guardar en la galería

FreeApp.saveToGallery()

Guarda una imagen en Fotos.

Compartir archivos

FreeApp.shareFile()

Comparte un archivo real.

Mensajes emergentes (toast)

FreeApp.toast()

Toast nativo breve.

Cómo las llama la plantilla

const f = await FreeApp.pickFile({ accept: ['image/*'] });
const small = await FreeApp.compressImage(f.dataUrl, { maxSize: 1280, quality: 80 });
console.log(f.size, '->', small.bytes);

Hazla tuya con IA

Copia este prompt en ChatGPT, Gemini o Claude, cambia la idea por la tuya y pega la respuesta en el editor. Ya le explica a la IA la estructura de la app y las funciones del teléfono.

Mostrar el prompt para IA
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.

The app: Photo Compressor — a photo compressor that shows the before/after size and saves the smaller image. Pick a photo, shrink it natively with size and quality sliders, then save or share it.

Requirements:
- Mobile-first, touch-friendly UI (min 44px tap targets), works in portrait, supports light and dark mode.
- Use <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> and pad for env(safe-area-inset-*).
- Must work fully offline: no CDN or external scripts, fonts or images; persist data in localStorage.

The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.pickFile(opts?: {accept?: string[], multiple?: boolean}): Promise<{name, mime, size, dataUrl}>
- FreeApp.compressImage(dataUrl: string, opts?: {maxSize?: number, quality?: number}): Promise<{dataUrl, width, height, bytes}> — native, fast on low-end phones
- FreeApp.saveToGallery(dataUrl: string, fileName?: string): Promise<{uri}> — saves an image to Photos
- FreeApp.shareFile(fileName: string, mimeType: string, base64OrDataUrl?: string): boolean — share a real file (omit the data to share an app file by name)
- FreeApp.toast(message: string): void — short native toast

Rules for the bridge:
- Always guard calls with `window.FreeApp &&` (or `if (window.FreeApp) { … }`) and provide a browser fallback so the page also works in a normal browser.
- The bridge may be injected after your script runs: do native setup inside `window.addEventListener('freeappready', …)` and also run it immediately if window.FreeApp already exists.
- Do not use alert/confirm for normal feedback; prefer FreeApp.toast when available.

Return the complete index.html in one code block.

My idea: [DESCRIBE YOUR APP IDEA HERE]

Conviértela en una app de Android

  1. Toca Editar y compilar en línea. La plantilla se abre en el editor en línea.
  2. Cambia el texto, los colores y el código, y luego elige un nombre de app, un icono y un nombre del paquete.
  3. Compila. Obtienes un APK firmado para instalar y un AAB para Google Play, gratis, sin cuenta y sin marca de agua.

✏️ Editar y compilar en línea CONSÍGUELA GRATIS ENGoogle Play