V
V
Viktor Volkov2018-04-27 13:11:39
PHP
Viktor Volkov, 2018-04-27 13:11:39

Why does php change its width with height when loading an image?

5ae2f6df284c3432026545.png
Uploading an image, crying it out imagecreatefromjpeg. those that are horizontal go without problems during further processing, while the vertical php turns on its side .. what can be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kornilov, 2018-04-27
@KorniloFF

Because of the exif information in the image file. Remove exif when uploading to the server - I think the problems will disappear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question