-
Notifications
You must be signed in to change notification settings - Fork 851
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
paper background image does not appear in exported png/svg/jpeg file #1502
Comments
Hi, this is not currently supported. A workaround is to add the const imageVel = V('image').attr({
'xlink:href': 'image.png',
'width': 1000,
'height': 1000
});
V(paper.getLayerNode('back')).append(imageVel);
paper.toPNG(function(dataURL) {
imageVel.remove();
/*...*/
}); |
Hi @kumilingus, thanks |
It depends on the background configuration. In your case ( const imageVel = V('image').attr({
'xlink:href': 'image.png',
'preserveAspectRatio': 'none',
...paper.getArea().toJSON()
});
V(paper.getLayerNode('back')).append(imageVel); |
thanks @kumilingus its working |
Hi again @kumilingus, Thanks |
Perhaps you have to wait until the new |
This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days. |
Did we get any update on same? |
This one has not been implemented yet (it has a lower priority since workarounds exist). What is your paper background configuration? We can suggest a workaround. |
The above code is use to export in PNG format, but the paper background image is not applied to the downloaded image
The background image is applied as flows
Acutal Graph contained
Downloaded Image
The text was updated successfully, but these errors were encountered: