Page 1 of 1

Cutting an image

Posted: Sun Oct 30, 2022 11:02 am
by loulou2522
HI all,
Here is my problem: is it possible in Purebasic to cut an image that is not always positioned in the same place on a page but that has areas above and below it that I would like to eliminate in order to extract only the image itself and not the white parts above and below the image. I can't use GRABImage because I don't know the positioning of the image in the page, which can vary from one image page to another

THanks

Re: Cutting an image

Posted: Sun Oct 30, 2022 11:27 am
by mk-soft
You will probably have to cut out a large one yourself and then look for the edge.

Re: Cutting an image

Posted: Sun Oct 30, 2022 1:00 pm
by Sicro
I had once scanned a lot of photos with a scanner and then wrote a tool to cut away the white borders from the photos.
Here I have uploaded it now: Click

Re: Cutting an image

Posted: Sun Oct 30, 2022 7:49 pm
by davido
@Sicro,
Thank you, very much.

I've been trying to do this for some time without any signs of success! :)