Create thumb of the same size in CodeIgniter

0

I'm uploading images with CodeIgniter(v3.1.7) and would like to crop the thumb to make it a perfect square.

If I set the 150x150 values and leave maintain_ratio as false , the thumb is going to be the size I want, but the problem is that it can distort some images depending on its size.

How could I create this thumb with the same dimensions? I already tried to resize and crop, but I could not do the 2 together, it ended up generating two images.

    
asked by anonymous 10.02.2018 / 22:33

0 answers