Home > other >  Crop/align top png image in its own size with PHP
Crop/align top png image in its own size with PHP

Time:02-10

I've been struggling to find a way to align a PNG image to the top of its own size.

Example Original image to the left aligned to center in its size => what it should look like - aligned to the top in its box (after minimization as well)

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:

  •  Tags:  
  • Related