E
E
Ensiouel2019-08-22 10:06:02
Images
Ensiouel, 2019-08-22 10:06:02

How to find the borders of a picture?

I'm not entirely sure about the correctness of the question, but still, how can you find the borders of an image on a transparent background?
I will give Aseprite as an example, he enclosed the lines in a rectangle, and I need to find a way to find the coordinates of this rectangle, you can just say the correct name of this case.5d5e3ec6b26f4952963524.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
arsenty, 2019-08-22
@arsenty

ImageMagick
convert image.png -trim image_new.png

D
Developer, 2019-08-22
@samodum

I have several options for an answer. To choose an answer, you need to specify the question.

E
Egor Padalka, 2019-08-22
@ehs

What is there to invent, line by line to run through the pixels until the first line with data comes across. Then back from the bottom end. Well, left to right, too.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question