example of how to use inside test,
1. load 'graphics/pplatimg' NB. ensure reload for testing 2. 3. T1=: T=. readimg_pplatimg_ jpath'~addons/graphics/bmp/toucan.bmp' 4. T writeimg_pplatimg_ jpath'~temp/toucan.jpg' 5. T writeimg_pplatimg_ jpath'~temp/toucan.png' On Thu, Dec 20, 2018, 1:57 PM bill lam <bbill....@gmail.com wrote: > API for image reading/writing are similar and should give/return the > same J array data. I think you should try pplatimg, it is available on > all desktop platforms. alpha channel does not apply to jpeg format. > > There are 2 verbs in stdlib: setalpha and getalpha , you can use them > to clean up and setting alpha channel > > On Thu, Dec 20, 2018 at 12:57 PM Devon McCormick <devon...@gmail.com> > wrote: > > > > %* > > is much better. > > Bill: I have not put in the effort to see if I could do my usual thing > with > > these other packages like "platimg" : the main 2 things I'd worry about > > when changing image-processing libs like this would be the robustness of > > the underlying API support and the format of image-delivery; in jqt.dll, > I > > get 2D mats of signed integers but I can pass back |2D mats w/o problems > > (suspect the sign bit may be the alpha channel). > > If, by "decommissioning jconsole qt support", you mean breaking out the > > base image-processing code nicely, that would be great! Maybe I should > > look at the various alternatives to what I already use and write a > review? > > > > > > > > On Wed, Dec 19, 2018 at 6:50 PM bill lam <bbill....@gmail.com> wrote: > > > > > I was considering decommissioning jconsole qt support in j807 because > most > > > of facilities provided were already available as other addon. For > > > reading/writing image files, addons bmp, png, jpeg and platimg can be > used. > > > > > > Most probably, jconsole qt support will be removed in the next beta > > > release. > > > > > > > > > On Thu, Dec 20, 2018, 1:51 AM Devon McCormick <devon...@gmail.com > wrote: > > > > > > > Hi - > > > > I have recently - again - fixed the issue I have with running > > > > image-processing routines - basically just read and write an image > file - > > > > under a command-line jconsole. This has been an issue for me > because of > > > > the built-in assumption that anything image-related is tied to Qt. > > > > > > > > As part of my fix, I added this line to "jconsole.cmd": > > > > @set QT_PLUGIN_PATH=%~dp0bin > > > > and changed the final line to this: > > > > @bin\jconsole.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 > > > > in order to pass any command-line arguments to the console. See > > > > > > > > > > > > https://code.jsoftware.com/wiki/User:Devon_McCormick#Solving_Problem_Reading_Images_in_JConsole > > > > for more information about this fix. > > > > > > > > Is it possible to add these changes into the distributed version of > J so > > > I > > > > don't have to make them every time I upgrade it? I don't think they > > > would > > > > affect many people - if any - and they add some functionality. > > > > > > > > Thanks, > > > > > > > > Devon > > > > -- > > > > > > > > Devon McCormick, CFA > > > > > > > > Quantitative Consultant > > > > > ---------------------------------------------------------------------- > > > > For information about J forums see > http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > > -- > > > > Devon McCormick, CFA > > > > Quantitative Consultant > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm