Printing and exporting graphics to some image types have incorrect (red) colors
Reported by Francois Granade
BUG DESCRIPTION:
----------------
This is a follow-up to bug 12788: display on the screen is now working OK, but printing is still broken for exporting to some types. there seem to be an easy woraround (see Calixte's comment below) so this is probably low priority.
> This probably should be a separate bug report, but it is irritating that (under Windows, at least) selecting File->Print... from a plot window almost always
> produces something useless (due to clipping) and/or ugly (due to bitmapping). Looks very amateurish. Is it impossible to automatically scale what is in the
> window so it fits on the page and print vectors as vectors?
> I usually export the plot as a PDF and then print the PDF. That works, but it seems like there should be an easier way ...
> [reply] [−] Comment 40 Samuel GOUGEON 2015-04-24 21:24:06 CEST
> Exportations status about reddishing (Scilab 5.5.2):
> * Clipboard, PNG, JPG, GIF, BMP, PPM : red
> * PDF, SVG, PS : OK
> [reply] [−] Comment 41 Samuel GOUGEON 2015-06-03 21:06:16 CEST
> http://bugzilla.scilab.org/show_bug.cgi?id=13904#c3
> > SG: Other users and i would be really glad to have such slow exports, but in full colors, instead of in red:
> > http://bugzilla.scilab.org/show_bug.cgi?id=12788#c40
> >Calixte DENIZET from comment #4:
> > Hi Samuel,
> > You should have this slow and nice exports without any red lines: the only condition is to make an offscreen export for PNG or JPEG format.
>
> Thanks for the trick. It works. It is hard to tune the right size for the figure in a blind way, but it works:
>
> driver JPG;
> xinit test.jpg;
> surf();
> f = gcf();
> f.figure_size = [1000 800];
> xend
> winopen test.jpg
>
>
see also that comment:
> After upgrading to a x64 windows system I was getting the red plots both in plot windows and in png output files. I have since updated Scilab to version
> scilab-branch-5.5-1435912166 (downloaded 27/8/2015) and while the plots now show up correctly in plot windows they still produce red png files when saved.
> I was under the impression that a png came from the clipboard so if it was displaying correctly then the output should be correct. Have I missed a fix or
> setting to correct this?
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
OTHER INFORMATION:
------------------