We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Library seems really good, I am trying to fit image to cell but I couldn't find a way, whats best way to do the same?
The text was updated successfully, but these errors were encountered:
Hi Abhishek,
The best, and only, way is to scale the image with the worksheet_insert_image_opt() function to fit into a standard Excel cell size of 20x64 pixels:
worksheet_insert_image_opt()
lxw_image_options options = {.x_offset = 30, .y_offset = 10, .x_scale = 0.5, .y_scale = 0.5}; worksheet_insert_image_opt(worksheet, 2, 1, "logo.png", &options);
See the docs for worksheet_insert_image_opt(): http://libxlsxwriter.github.io/worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b
John
Sorry, something went wrong.
jmcnamara
No branches or pull requests
Library seems really good, I am trying to fit image to cell but I couldn't find a way, whats best way to do the same?
The text was updated successfully, but these errors were encountered: