I’ve been trying to use Imagick to turn PDF files in my PHP application into PNGs so that I can get Tesseract OCR’s PHP library to scan only handwritten text in the documents. The handwritten text areas are surrounded by a black border in the documents, and there’s a chance that they could be slightly tilted since some of the
Tag: image-manipulation
GD! Converting a png image to jpeg and making the alpha by default white and not black
I tried something like this but it just makes the background of the image white, not necessarily the alpha of the image. I wanted to just upload everything as jpg’s so if i could somehow “flatten” a png image with some transparently to default it to just be white so i can use it as a jpg instead. Appreciate any