I can rotate the images horizontally / vertically, but I cannot rotate them using the GD2 library

I am developing a feature that allows you to rotate an image in 90 degree increments or rotate horizontally or vertically. My code works fine on my own computer, but when I boot to a live server, the rotate function stops working. Images can still be inverted, but their rotation does not lead to changes. No error messages. The function that performs the rotation returns the same value as if the rotation was successful. This does not apply to the need to reload the page (I tried this). After the image is rotated, I have to find the image file on the server and find that it really was rotated, but this does not happen.

The stunning part of this is that the flip function is still working, it's just a rotation function that has stopped working. Does anyone know if this could be something in the server setup? Maybe another version of the GD2 library? I do not think this is a code problem, but something else regarding the server that causes this. Any help would be appreciated.

+3
source share
1 answer

Check out the demo and the tutorial http://www.innovativephp.com/online-image-rotator-using-php-gd-library-for-improving-design-tasks/ for details on how to rotate an image using php gd

0
source

Source: https://habr.com/ru/post/1791585/


All Articles