I've been struggling to find a way to align a PNG image to the top of its own size.
Is there some function to do this, which I am not aware of? I've also tried to crop the image and maybe try to resize it later following this answer but imagecropauto() seems to not work. https://stackoverflow.com/a/45610601/8450940 Also clicking the link in there which is supposed to show the result does not seem to work as well - http://zikro.gr/dbg/php/crop-png/
CodePudding user response: