@
@
@profyt2017-08-30 12:05:30
MODX
@profyt, 2017-08-30 12:05:30

How to display an image using Image+ in MIGx?

Good afternoon, the question is as follows:
We have a main-gallery TV field, which has a migx config, in which image + is specified.
When displaying the elements of the main-gallery variable (using the getImagelist snippet), I get the following code:

{ "sourceImg": {
 "src": "assets/img/userimages/2017-07-20 15-28-58.JPG", 
"width": 3264, 
"height": 1836,
 "source": 1 
}, "crop": {
 "x": 0,
 "y": 0, 
"width": 1575, 
"height": 1287 }, 
"targetWidth": 0,
 "targetHeight": 0 }

How can a cropped image be derived from this? And immediately along the way, the question is how to set parameters for Image + in migx.
These are the migx settings.
df852e5a11aa4953aea2226f19e14f79.JPG
This is the output in a chunk.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profyt, 2017-08-31
_

Everything turned out to be much simpler, there is a jamb in Image +, when setting up there is a "fromjson" field, where, in theory, you can put a json string obtained from migx, but this field should not be called "fromjson", but "value" .... Just a flaw in the release and so many problems ...


This is how the problem is solved, but along with it another one appears, how to get the original image? The snippet returns the absolute path from the hosting root...

F
Froggyweb, 2017-08-30
@Froggyweb

tpl not specified

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question