You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a web scraper Chrome extension that gathers menu information of a food vendor on a food delivery platform, then saves the data into an Excel file using exceljs.
The images will be inserted into the Excel file as well, so I want to scale the image to be smaller while keeping its aspect ratio. However, the width and height attributes for ext in addImage only accept values in pixels, so is it possible to set the image resolution by percentage using addImage, or alternatively scale the image by setting either width or height only?
This discussion was converted from issue #2346 on September 21, 2023 19:09.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am working on a web scraper Chrome extension that gathers menu information of a food vendor on a food delivery platform, then saves the data into an Excel file using exceljs.
The images will be inserted into the Excel file as well, so I want to scale the image to be smaller while keeping its aspect ratio. However, the
width
andheight
attributes forext
inaddImage
only accept values in pixels, so is it possible to set the image resolution by percentage usingaddImage
, or alternatively scale the image by setting eitherwidth
orheight
only?Beta Was this translation helpful? Give feedback.
All reactions