Skip to content

SVG icons are not capturing  #253

Description

@AliSheikhDev

This is my code base to capture a website page i have set all alignment issues using custom css but svg icon on my page are rendering or its not capturing svg icons.
var options = {
//renderDelay: 5000,
windowSize: {
width: 1360,
height: 455
},
shotSize: {
width: 'all',
height: 'all'
},
viewportSize: {
width: 1360,
height: 455
},
customCSS: ".single-cpt_advisors a.topicon {float: left;}/content/.single-cpt_advisors .row{display: block !important;} .singel_advisor .col-md-4{float:right !important} .contact_advisor .d-flex{padding-bottom:0px !important;float: left;min-height: 80px;} .contact_advisor .d-flex span{display:block;float:right;padding-left:0px !important;} .singel_advisor .content_sec{display:inline-block;} .contact_advisor .svgicon{ display:block !important;float: right;} /header/.single-cpt_advisors .col-lg-3{float:left !important;} .single-cpt_advisors .col-lg-9{float:right !important;} /footer/ .copyright_sec .col-md-9{float:left !important;} .copyright_sec .col-md-3{float:right !important;}"

    };
    //https://www.npmjs.com/package/node-webshot
    webshot(url, 'images/test.png', options, function(err) {
      // screenshot now saved to google.png
      res.status(200).json({status: 'OK', message: 'Generated..', image_url: 'https://code.hashe.com/wp_pdf/images/test.png'});
    });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions