When I use
in a script I get a pop up window with a title of "Export to image" and an input box labeled
This dialog effectively pauses the script until I manually enter this value.
Is there any way to prevent the dialog box or answer it from the script?
I have a work around for this problem but it is not quite optimum...
from your script use exportEPS
Then use image magick's convert utility (from Perl in this case.)
system("convert -rotate \"90\" output.eps output.jpg");
Better answers would be appreciated.
The dialog about the quality for exporting is hardcoded in LabPlot 1.5.1.
I have fixed this problem now in 1.6.0.pre2 where you can use
exportPlot("output.jpg", "JPEG", 75);
to avoid this dialog.
I can tell you which lines needs to be modified in the source code if want to recompile LabPlot.
Thanks for reporting.
Thanks for the fix. The ability to directly output to jpeg should improve the quality and speed up the output.
Yes, I would be interested in the source code lines that need to be fixed.
I appreciate all your work on this project!
In LabPlot 22.214.171.124 you have to change the lines 1983-1985 :
int quality = QInputDialog::getInteger(i18n("Export to image"),i18n("Quality (0-100)"),75,1,100,1,&ok);
to something like :
int quality = 75;
This doesn't allow you to set the qualiy per script, but it prevents this nasty dialog.
hope this helps :-)
Thanks, I will try this.
I assume that int quality is valid from 0 to 100.
Again, I appreciate your help!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.