Re: [Jprogramming] PNG output quality

2020-03-31 Thread Rudolf Sykora
Dimitri Georganas writes: > Yes, in theory it will work, but it practice doesn't. I read that page of > course, replaced the pathnames, looked into the code and eventually found > out that it calls gnuplot as an .exe explicitly. I'm sure it can be made to > work but being on a tight schedule I'm

Re: [Jprogramming] PNG output quality

2020-03-31 Thread Dimitri Georganas
Yes, in theory it will work, but it practice doesn't. I read that page of course, replaced the pathnames, looked into the code and eventually found out that it calls gnuplot as an .exe explicitly. I'm sure it can be made to work but being on a tight schedule I'm trying to cut some corners. On

Re: [Jprogramming] PNG output quality

2020-03-31 Thread Rudolf Sykora
Dimitri Georganas writes: > I also looked at graphics/gnuplot addon, but it seems windows-specific. Why do you think? I believe it could work anywhere, though on Windows, if you define GNUPLOTBIN_pgnuplot_, as described here https://code.jsoftware.com/wiki/Addons/graphics/gnuplot one could hav

Re: [Jprogramming] PNG output quality

2020-03-31 Thread Dimitri Georganas
I think your code works fine, the only problem is how to get the bitmap the pd code produces into a variable. The pd 'get' function complains that clipboard is supported only on Windows - it seems to depend on pd 'clip'. :/ On Tue, Mar 31, 2020 at 8:16 AM Devon McCormick wrote: > Hi - > I don't

Re: [Jprogramming] PNG output quality

2020-03-31 Thread Dimitri Georganas
Thanks, pdf has been working fine - will try to find a way to convert it to a bitmap afterwards. On Tue, Mar 31, 2020 at 8:56 AM bill lam wrote: > PNG should be a lossless format, it got compression level, but still > lossless anyways, do the quality must already bad before saving as png > files

Re: [Jprogramming] PNG output quality

2020-03-30 Thread bill lam
PNG should be a lossless format, it got compression level, but still lossless anyways, do the quality must already bad before saving as png files. cairo built-in text font was a toy only, not sure if it got improvement or not. plot has several output formats, you may try pdf which works on jconsol

Re: [Jprogramming] PNG output quality

2020-03-30 Thread Devon McCormick
Hi - I don't know how well this works on non-Win systems, but I use these: load 'ide/qt/qtlib' NB. At least since v. 8.07 read_image=: readimg_jqtide_ write_image=: writeimg_jqtide_ These verbs are smart enough to figure out the file format from the suffix of the name to which you write

[Jprogramming] PNG output quality

2020-03-30 Thread Dimitri Georganas
Hi, I'm modeling IC bed impact due to COVID-19 and I need to output a large number of bitmaps, so png seems a good choice. However, PNG (cairo) output results in quality loss (compared to the default option) and I was wondering if I am missing any libraries (libcairo is installed). It's a linux sy