jit.matrix exportimage not working on Windows Max 7

astammet's icon

I'm actually working on a patcher saving sonograms with jit.destop -> jit.matrix getting a filepath prepended with exportimage. Everything worked fine on PC and Mac with Max 6. Since I'm using Max 7 / 7.1 32-bit or 64-bit I'm getting black PNG or jpeg images on my PC and on my Mac everything works as expected.

The screenshot appears as expected in my jit.pwindow connected for testing purposes.

This seems to be either a bug or something that makes a new difference in the PC environment.

Thanks for some help.

screenshot2.jpg
jpg
Main-Window.jpg
jpg
Main-Window-edit.jpg
jpg
Start.jpg
jpg
astammet's icon

Here is an example of a previously saved sonogram.

Glissando-with-changing-vowels-1.png
png
Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hi astammet.
i just tested with 7.1 on both 32 and 64 bit versions of windows 8 and cannot reproduce the issues you are describing.
i used the following patch.
we are going to need a full patch and complete system specs to diagnose further. you can send this info to support if you'd prefer not to post publicly.

astammet's icon

Hi Rob,

Thanks for your fast reaction.

I tried your patch. It worked fine with jit.grab but not with jit.desktop.
The problem must be this obejct.

Debugging1.maxpat
Max Patch
Debugging1.png
png
astammet's icon

I made the test (debugging1 beginning with your patch) with Max 7.1 on an Acer Laptop with Windows 10, 8 GB Ram. But the problem has already appeared earlier, on the same computer, while it has been turning with Windows 8.1.

Rob Ramirez's icon

ok i see what's going on here.
it looks like jit.desktop sets the alpha plane to 0 for some reason, and therefore the image exporter makes the images invisible.

Max Patch
Copy patch and select New From Clipboard in Max.

i'll try and find out why this is, but in the meantime your workaround is simply to give the matrix a fully visible alpha plane. jit.gen does this quite easily, as in the following example:

astammet's icon

Thank you very much, Rob. It's now working as expected.