Login to follow
HEIC2Any

HEIC2Any (ODC)

Stable version 1.0.2 (Compatible with ODC)
Uploaded on 25 November 2025 by Direccao HCSintra
HEIC2Any

HEIC2Any (ODC)

Details
Detailed Description

Seamlessly handle Apple's HEIC image format in your OutSystems applications without server-side processing.

This component provides a robust wrapper around the heic2any library to detect and convert HEIC images directly in the browser. It solves the common issue of iPhone uploads not displaying correctly in web applications.

Key Features:

  • IsHEIC Action: Intelligently checks "magic bytes" to detect HEIC files (even if the extension is wrong).

  • ConvertImage Action: Converts HEIC binary data to PNG format.

  • Heic2AnyLoader Block: Ensures efficient script loading.

Limitations

The webblock needs to be added before calling the client actions

Release notes 

Initial Release: Client-Side HEIC Conversion with library Icon


We are excited to release the first version of the HEIC2Any wrapper, allowing you to handle Apple’s HEIC image format directly in the browser.


⚠️ Important Usage Requirement: To use this library, you must place the Heic2AnyLoader web block on your Screen or Block before calling any actions. This block ensures the necessary scripts are loaded and ready.


Available Client Actions:

  • IsHEIC

    • Description: Intelligently checks if the provided Binary Data is a HEIC file by inspecting the file signature (magic bytes), rather than just relying on the file extension.

    • Use case: Call this before conversion to decide if processing is necessary.

  • ConvertImage

    • Description: Converts a HEIC binary object into a browser-compatible image format.

    • Output: Returns the image as a URL string (Text) or Binary Data that can be used with the image widget.

    • Default: Converts to PNG by default but you can change the format. Formats possible are: "image/png"or "image/gif" or "image/jpeg"