A
A
Artem Selyansky2019-08-30 07:44:09
PHP
Artem Selyansky, 2019-08-30 07:44:09

How to process images without resizing in MODx phpthumb?

I need to process images through phpthumb without resizing and without creating white margins on the sides of the image. I didn't find an answer to my question in the documentation.
These are the settings that now create white margins around the edges.
{
"w": 1080,
"h": 1080,
"q": 95,
"iar": "0",
"ar": "x"
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tr3m0r, 2019-08-30
@amlvovich

"zc":"1",
For images larger than the dimensions specified in the parameters, fits the image on the smaller side of the specified dimensions and crops the larger one to them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question