-
-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Description
We’re currently using snapdom to capture full pages or specific DOM regions and export them as png / jpg / svg. One feature we found missing (and would be very useful in real-world layouts) is the ability to control the object-fit behavior of the generated image.
Describe the solution you'd like
It would be great if snapdom could support configuring object-fit for the output image, for example by:
Allowing an objectFit option in the API, e.g.:
snapdom.toJpg(element, {
objectFit: 'cover',
width: 400,
height: 300
})
Metadata
Metadata
Assignees
Labels
No labels