New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

image-speech-bubble-transformer

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-speech-bubble-transformer

TypeScript library for applying speech bubble effects to images

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-75%
Maintainers
0
Weekly downloads
 
Created
Source

Image Speech Bubble Transformer

A TypeScript library for applying speech bubble effects to images with various transformation options.

Installation

npm install image-speech-bubble-transformer

Usage

import {
  createSpeechBubbleTransformer,
  Orientation,
} from "image-speech-bubble-transformer";
import fs from "fs/promises";

async function example() {
  // Create transformer instance
  const transformer = createSpeechBubbleTransformer();

  // Read image buffer
  const inputBuffer = await fs.readFile("input.png");

  // Process image with options
  const processedBuffer = await transformer.processSpeechBubble(inputBuffer, {
    mirror: true,
    orientation: Orientation.LEFT,
  });

  // Save processed image
  await transformer.processAndSave(inputBuffer, "output.png", {
    mirror: true,
    orientation: Orientation.LEFT,
  });
}

API

createSpeechBubbleTransformer(assetsDir?: string)

  • Creates a transformer instance
  • assetsDir: Optional path to custom assets directory

processSpeechBubble(inputBuffer, options)

  • Applies speech bubble effect to image
  • Options:
    • mirror: Flip horizontally
    • orientation: Rotate speech bubble
    • speechBubblePath: Custom speech bubble image

processAndSave(inputBuffer, outputPath, options)

  • Processes and saves image in one step

Supported Formats

  • .png, .jpg, .jpeg, .gif, .bmp, .webp, .tiff

Keywords

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc