1.0.10 • Published 5 months ago

hamkari_image_splitter v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Image Splitter

This package allows you to split an image into smaller chunks of a specified height.

Installation

Install the required package using npm:

npm i hamkari_image_splitter

Usage

import { splitImage } from 'hamkari_image_splitter';

(async () => {
  try {
    const imagePath = './002.jpeg';
    const chunkSize = 825;
    const outputDirectory = './sliced';
    const outputExtension = "jpeg";

    // Split the image
    const chunks = await splitImage(imagePath, chunkSize, outputDirectory, outputExtension);
    
    console.log('Image successfully split into', chunks.length, 'chunks');
  } catch (error) {
    console.error('Error splitting image:', error);
  }
})();
1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago