Giter Site home page Giter Site logo

image-splitter's Introduction

Image Splitter

A tool to split an image into square tiles. Supports gifs.

Upload an image, and it will save the square tiles into a zip file. If there are more than 50 tiles, it will separate them into different folders.

You can adjust the size of the square tiles, the prefix of the image files, and the delay in milliseconds between the frames of the gif (if applicable).

Examples

Still Image:

Still Image Demo

Animated Gif:

Gif Demo

Libraries Used

A big thanks to the creators of these libraries for their work. Without them, this project would not have been possible.

image-splitter's People

Contributors

ruyili avatar thomasluu00 avatar x753 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

image-splitter's Issues

Flickering, grey frames and low FPS when encoding gifs

When attempting to split certain gifs, some flickering grey pixels will appear on most of the frames. Additionally, the delay option to set the delay in milliseconds between consecutive frames does not work.

Steps to reproduce:

  1. Upload this gif:
    yum
  2. Change the delay option to 10 milliseconds.
  3. Click the split button.

Expected behavior:

  1. The roduced gif looks exactly the same as the decoded gif.
  2. The delay between each frame is 10 milliseconds.

What actually happens:

  1. The produced gif is covered in grey pixels.
    image
  2. The delay between each frame is much longer than 10 milliseconds.

Notes:

  • The "grey" color is #36393F, the same as Discord's background. This value is set as the filler background for gifs that have sizes that cannot be split perfectly into square tiles, so perhaps it is more accurate to say that "most of the pixels in the gif's frames are not rendering".

Gif background is not transparent

I was trying to make a typing indicator using 3 emojis. I uploaded a wide, 768 × 256 transparent gif. Here's what it looks like:

3 dots

It gets split into 3 perfectly. However, it added a gray background.

Gray background behind circle

Is there any way to keep the transparency? Here's my settings:
Screen Shot 2021-08-12 at 6 29 04 PM

Btw, thanks for making this! Comes in handy pretty often.

[ENHANCEMENT] cut into equal widths

So if I have an odd width gif, lets say 330px wide, let me cut it into 3 106px wide pieces instead of having 6 different pieces, if that makes any sense?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.