1.0.10 • Published 6 months ago

hamkari_image_splitter v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
6 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

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago