|
[Sponsors] |
How to successfully export jpeg image with User defined Windows Size in Batch mode |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2016, 06:16 |
How to successfully export jpeg image with User defined Windows Size in Batch mode
|
#1 |
New Member
jan bono
Join Date: Feb 2016
Posts: 11
Rep Power: 10 |
Hi everyone,
As stated in the title, i would like to run ensight in batch mode. I have a command file ( .enc ) that i can run without any problem. In the end it gives me an screenshot of the work it did : multiple viewport, labels, legends, etc... The command is the following : Code:
file: image_format jpg file: image_format_options Quality 100 anim_recorders: render_offscreen ON file: image_numpasses 8 file: image_stereo current file: image_screen_tiling 1 1 file: image_window_xy 2000 2000 file: save_image Is there a way to stop it from re-dimension the exported image ? thank you for your answer EDIT ________________ I am using EnSight standard 10.0.3(a) pathofEnSightexe -X -batch -p nameofthefile.enc I missed in my code the line : file: image_window_size user_defined This line solved my problem so in the end i have : Code:
file: image_format jpg file: image_format_options Quality 100 anim_recorders: render_offscreen ON file: image_numpasses 8 file: image_stereo current file: image_screen_tiling 1 1 file: image_window_size user_defined file: image_window_xy 2000 2000 file: save_image "file: image_window_xy ...." line Indeed, i may have forgotten it while taking the command code.... ups. Last edited by potofus; April 26, 2016 at 08:44. |
|
April 25, 2016, 12:50 |
|
#2 |
Member
Marina Galvagni
Join Date: Apr 2014
Location: North Carolina, USA
Posts: 58
Rep Power: 12 |
Hi Jan,
A few comments: 1. It'd be useful to know what exact version of EnSight you are using (10.X.X(x)). Indeed the command language to save images have slightly changed between versions 2. It'd be useful to know also what commands you are using when running EnSight in batch. Indeed there are some flags that can be used that will set the size of the viewport (and therefore of the exported images), that take priority over the commands in an .enc file. 3. The command language you are using seems to be missing the line file: image_window_size user_defined This is the line that tells EnSight to not use the default windows size, but to actually read the file: image_window_xy line. Please add it before the "file: image_window_xy ...." line 4. I am not sure where the command "flag__link" comes from? This doesn't seem to be one of the default Ensight command. Hope this helps. Please let me know your comments to each point if you still need help. Best Regards, Marina Galvagni CEI Software Support Engineer |
|
April 26, 2016, 04:25 |
|
#3 | |||
New Member
jan bono
Join Date: Feb 2016
Posts: 11
Rep Power: 10 |
Tank you Marina for your quick answer, i realized my post was indeed not really complete and i will update it.
Quote:
Quote:
Code:
pathofEnSightexe -X -batch -p nameofthefile.enc Quote:
4. I am not sure where the command "flag__link" comes from? This doesn't seem to be one of the default Ensight command. It is a personnal addition that is replaced when executed by the command that saves the image in a precise path : Code:
file: image_file nameofthefile In the end, it worked ! I don't know how but , in the provess of copying, i must have forgot the command : Code:
file: image_window_size user_defined |
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |