OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Imgbeddings

imgbeddings is a Python library that generates image embedding vectors with OpenAI's CLIP model through Hugging Face Transformers, using ONNX INT8-quantized models. The vectors can be passed to separate tools or workflows for image clustering, similarity, search and other machine-learning tasks.

Independent OpenViST project profile, based on linked sources.

Imgbeddings — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Python workflow needs CLIP-based image vectors and you want an ONNX-based option that does not require PyTorch or TensorFlow.

Who it is for

  • Python developers preparing image embeddings for downstream machine-learning workflows.
  • Teams building image clustering, similarity or embedding-search systems.

Documented uses

  • Generate vectors from individual images or batches of image files and PIL images.
  • Prepare image vectors for clustering or similarity comparisons.
  • Feed generated embeddings into a separate vector-search system or downstream classifier.
Before you choose

Requirements & limits

The package is distributed through PyPI, and its public GitHub repository specifies the MIT license.

  • The default patch32 model is 88 MB and returns 768-dimensional NumPy vectors.
  • Patch16 produces more granular embeddings but takes about three times as long as patch32; patch14 is about 3.5 times the model size and three times slower than patch16.
  • Images are padded and resized to square rather than center-cropped; very wide or tall images may yield less robust embeddings.
  • The library handles image data, not combined image-and-text embeddings.
  • The README flags bias in CLIP and advises against production use of the model.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Generate an embedding for an image

Install imgbeddings, load an image and obtain its CLIP embedding vector.

Before you start

  • Python with pip3
  • An image available as a filename or PIL image
  • The imgbeddings package and its model

Steps

  1. Install the package with the command below.

    Documented command
    pip3 install imgbeddings
  2. Load an image as a PIL image, or provide an image filename.

  3. Import imgbeddings and create an instance with ibed = imgbeddings().

  4. Pass the image to ibed.to_embeddings(image).

Expected outcome

A 768-dimensional NumPy embedding vector for the image; the method can also accept lists of filenames or PIL images for batch generation.

Guide limitations

  • The default model is the 88 MB patch32 variant.
  • Images are padded and resized to square; images with an aspect ratio above roughly 3:1 may produce less robust embeddings.
  • The project warns about CLIP bias and advises against production use of the model.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
18 October 2026
Original website title
minimaxir/imgbeddings · Official homepage title · retained in its source language