CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > EnSight

How to successfully export jpeg image with User defined Windows Size in Batch mode

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By potofus
  • 2 Post By Marina G

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2016, 06:16
Default 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
potofus is on a distinguished road
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
Problem is, when i do it WITH the interface and export manually my image, it works : I have a 2000X2000 image of my work. If i do it in batch mode, it doesn't work => The output image is "forced" to be in 1280X720, so the image is compressed , and some legends and labels overlap.

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
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
Indeed, i may have forgotten it while taking the command code.... ups.
Attached Images
File Type: jpg problem_res.jpg (82.2 KB, 13 views)

Last edited by potofus; April 26, 2016 at 08:44.
potofus is offline   Reply With Quote

Old   April 25, 2016, 12:50
Default
  #2
Member
 
Marina G's Avatar
 
Marina Galvagni
Join Date: Apr 2014
Location: North Carolina, USA
Posts: 58
Rep Power: 12
Marina G is on a distinguished road
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
Marina G is offline   Reply With Quote

Old   April 26, 2016, 04:25
Default
  #3
New Member
 
jan bono
Join Date: Feb 2016
Posts: 11
Rep Power: 10
potofus is on a distinguished road
Tank you Marina for your quick answer, i realized my post was indeed not really complete and i will update it.

Quote:
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
I am using EnSight standard 10.0.3(a)

Quote:
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.
I am using the command
Code:
pathofEnSightexe -X -batch -p nameofthefile.enc
Quote:
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
Indeed, i may have forgotten it while taking the command code.... ups.


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
Thank you very much for your help
potofus is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:37.