issues with displaying data in pvbatch with colorbars and legends

Hello,
Instead of using everytime the trace function, i have a base script that outlines the workflow that i do and when i need a new workflow, i base myself on this script and modify it. this is working like a charm for the data treatment section, specially it gives scripts that are way more clean and understandable. Neverhteless for the display section of it ie., images/videos i am having some trouble with the legends and colorbars etc. when I run my scripts on the gui python terminal I with my current script, i am getting a expected ouput, but when i run it using pvbatch, a lot of times the colorbar and text of the legends are absurbly enormous and sometimes it even overlaps with the simulation data displayed. I am clearlly ‘missing’ to define something in the script. currently what I have on in regards to displaying:

renderView = GetActiveViewOrCreate('RenderView')
renderView.OrientationAxesVisibility = 0
annotateTime = AnnotateTime(registrationName='AnnotateTime')
annotateTime2Display = Show(annotateTime, renderView, 'TextSourceRepresentation')
filterDisp=            Show(thresholdAlphaliquidLow, renderView,
                    'GeometryRepresentation',
                    AmbientColor = [0.3333333333333333, 1.0, 1.0],DiffuseColor = [0.3333333333333333, 1.0, 1.0],Opacity = 0.25)
ColorBy(filterDisp, None)

filterDisp2=            Show(thresholdAlphaliquidHigh, renderView,
                    'GeometryRepresentation',
                    AmbientColor = [0.3333333333333333, 1.0, 1.0],DiffuseColor = [0.3333333333333333, 1.0, 1.0],Opacity = 1)
ColorBy(filterDisp2, ('CELLS', 'O2ingas%Sat'))

filterDisp2.SetScalarBarVisibility(renderView, True)

o2inliquidLUT = GetColorTransferFunction('O2ingas%Sat')
o2inliquidLUT.RescaleTransferFunction(0.0, 100.0)


renderView.Set(
    CameraPosition=[12.094773972933861, 3.0058351395905616, 3.06828336629982],
    CameraFocalPoint=[-0.20000000298023224, 0.0, 3.2455354731591797],
    CameraViewUp=[0.016804032574048413, -0.009775377583712101, 0.9998110153835805],
    CameraViewAngle=32.77491408934707,
    CameraParallelScale=3.276161798992333,
)
    SaveAnimation(filename=casePath+'video.avi', viewOrLayout=renderView, location=16, ImageResolution=[1512, 776],
        FrameRate=10,
        FrameWindow=[0, len(timeSteps)-1])

what I am missing to define? when doing a trace i dont see anything in particular that should be there that it is not.
thanks in advance

Color bars and text elements differ between the Paraview GUI and python output. This is because both have different screen/render/canvas dimensions, and font sizes are not similarly scaled if you change your render dimensions. So what you need to do is set your renderView.ViewSize, layout.SetSize and SaveScreenShot(… ImageResolution) all to the same size and test your view in the GUI by using View->Preview. Generally, I like to set the size to 1920x1080px, so you could use the View->Preview->1920x1080(FHD) setting. If you do this consistently, all text elements and color bars should be identical between the GUI and pvbatch.