Closed travisbotello closed 2 years ago
This is the manager preview of exactly the same image and TV setup but uploaded and (never changed) in MODX 2.7.3 in the same installation:
Compared to the black (broken) thumbnail in the working example the sh
and sx
parameters are set correctly to the exact size of the image whereas in the broken version those values seem to be out of scope. Wondering if this has something to do with 2.8.0 or 2.8.1
You 'just' have to detect, why the calculated sy
value is -1
. Is it saved with that value in the JSON in the tv value? I never was able to reproduce this miscalculation on my development machine. If you could create a demo configuration with that, i can fix this.
I am quite sure, that this is solved in 2.9.1.
I am quite sure, that this is solved in 2.9.1.
Still the same issue on Windows/Chrome with 2.9.1
Maybe I am able to reproduce this. I don't know why the Image dimensions are not detected right. Have you tried that with an existing value in the TV? Or does it happen on a new resource too?
It is happening in both cases. See video here: https://www.dropbox.com/s/0m1g8gq8mubc2ai/image-crop-issue-modx.mp4?dl=0
Please check the fix in 2.9.2-rc1
Not working. The cropping tool now generates some dark skyscraper banner. Frontend output is also still empty.
Can you send me the image that turns black by mail? It looks like the cropping sides are turned.
The skyscraper issue is fixed with rc2. The black image is maybe caused by transparency in the image.
Can you send me the image that turns black by mail? It looks like the cropping sides are turned.
Done that...!
This is fixed with 2.9.2
I was just able to reproduce this in MODX 3.0.4 with ImagePlus 2.9.4-pl in Google Chrome:
After upgrading MODX to 2.8.1 some of my ImagePlus TVs are no longer working as expected. The scenario is always like this:
When target width and height are set for this TV and I upload an image that is close to those targets or exactly matching those the preview thumbnail in the manager turns black and also in the frontend the output is broken.
TV targets:
Set image:
After cutting:
In frontend it renders the absolute path:
<img src="/home/forge/test.website/public_html/assets/client/demo/2993x1995.png" alt=""/>
MODX error log shows the following:
I can bypass this issue by either uploading an image that is larger than the expected target (e.g. 3000x3000 in this scenario) or by cancelling the cropping tool. Imho I first saw this issue after upgrading MODX to 2.8.1.