D
D
Dmitry2020-05-30 14:24:11
PHP
Dmitry, 2020-05-30 14:24:11

Why does Laravel change image resolution when uploading to server?

Using the Intervention Image library, I copy the image (passed through the form) to the server. The original image is 72 pixels per inch, and after uploading to the server it becomes 96.
The code is very simple:

$img = Image::make($file)->save('uploads/cards/'.$file_name);

Everything is fine on the local server. Does it depend on the server settings? So I couldn't google the answer. And in the documentation for Intervention Image I could not find how to set the resolution. Only size is possible.
Please help me understand why the resolution is changing.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question