Skip to content

ImageRequestOptions ignoring viz_height and viz_width #1564

Closed
@bnoffke-uwcu

Description

@bnoffke-uwcu

Describe the bug
The viz_height and viz_width options were added to ImageRequestOptions (this is the merge). The resulting class has the properties, but it doesn't actually control the image resolution output.

Versions
Details of your environment, including:

  • Tableau Server version (or note if using Tableau Online): 2024.2.2
  • Python version: 3.11.2
  • TSC library version: v0.36

To Reproduce
Code snippet:

image_req_option = TSC.ImageRequestOptions(viz_height=image_height,viz_width=image_width,maxage=-1)
print(f"TSC Image Height: {image_req_option.viz_height} TSC Image Width: {image_req_option.viz_width}")
self.server.views.populate_image(view, image_req_option)

I set the properties in the req_option, I print the properties to show they are set, then I populate the image with the given image_req_option.

Results
The resulting image only abides by the default behavior, or the High resolution request option. Maybe there's something I'm missing?
Print result:
Image
Output resolution:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions