Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to change the image resolution in ggplot_image() ? #1483

Open
rich-iannone opened this issue Nov 7, 2023 Discussed in #1482 · 1 comment
Open

Option to change the image resolution in ggplot_image() ? #1483

rich-iannone opened this issue Nov 7, 2023 Discussed in #1482 · 1 comment

Comments

@rich-iannone
Copy link
Member

Discussed in #1482

Originally posted by solvi808 November 6, 2023
Hello, for my use case i find gt working very well to create large formatted output tables.

But my table happens to have 400+ up to thousands of rows, and each row has a corresponding image. This is becoming a problem for filesize and save times. I only need a dpi of say 50 for my images to be readable, or at least smaller (absolute) image dimensions. Is there any way to achieve this and reduce the absolute image size and filesize ?

I tried changing the height parameter in f.ex. ggplot_image(height = px(img_height), aspect_ratio = 4) , and from what I can tell it changes nothing except the relation to the aspect ratio? but it does not change the image file size.

@solvi808
Copy link

solvi808 commented Nov 7, 2023

I have made a quick suggestion/solution to fix this at #1485

@rich-iannone rich-iannone modified the milestones: v0.11.0, v0.12.0 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment