how to convert a html to jpg with same quality [duplicate]












0
















This question already has an answer here:




  • Render HTML to an image

    15 answers




I have a card that is made by HTML and some data comes from the database by query now I have to convert that particular div into png or jpg with good and same quality like HTML. html to canvas is not the good option for that.



As Image quality is blur










share|improve this question















marked as duplicate by Jeto, dingo_d, brasofilo wordpress
Users with the  wordpress badge can single-handedly close wordpress questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 3 '18 at 23:50


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















    0
















    This question already has an answer here:




    • Render HTML to an image

      15 answers




    I have a card that is made by HTML and some data comes from the database by query now I have to convert that particular div into png or jpg with good and same quality like HTML. html to canvas is not the good option for that.



    As Image quality is blur










    share|improve this question















    marked as duplicate by Jeto, dingo_d, brasofilo wordpress
    Users with the  wordpress badge can single-handedly close wordpress questions as duplicates and reopen them as needed.

    StackExchange.ready(function() {
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function() {
    $hover.showInfoMessage('', {
    messageElement: $msg.clone().show(),
    transient: false,
    position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
    dismissable: false,
    relativeToBody: true
    });
    },
    function() {
    StackExchange.helpers.removeMessages();
    }
    );
    });
    });
    Dec 3 '18 at 23:50


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















      0












      0








      0









      This question already has an answer here:




      • Render HTML to an image

        15 answers




      I have a card that is made by HTML and some data comes from the database by query now I have to convert that particular div into png or jpg with good and same quality like HTML. html to canvas is not the good option for that.



      As Image quality is blur










      share|improve this question

















      This question already has an answer here:




      • Render HTML to an image

        15 answers




      I have a card that is made by HTML and some data comes from the database by query now I have to convert that particular div into png or jpg with good and same quality like HTML. html to canvas is not the good option for that.



      As Image quality is blur





      This question already has an answer here:




      • Render HTML to an image

        15 answers








      php html wordpress






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 '18 at 9:31







      aditya singh

















      asked Nov 24 '18 at 9:20









      aditya singhaditya singh

      12




      12




      marked as duplicate by Jeto, dingo_d, brasofilo wordpress
      Users with the  wordpress badge can single-handedly close wordpress questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Dec 3 '18 at 23:50


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Jeto, dingo_d, brasofilo wordpress
      Users with the  wordpress badge can single-handedly close wordpress questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Dec 3 '18 at 23:50


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


























          1 Answer
          1






          active

          oldest

          votes


















          0














          you can use pdfcrowd API library for it. https://pdfcrowd.com/doc/api/html-to-image/php/



          or you can do it with Html to Jpeg with Php and html2canvas



          https://github.com/erayakartuna/html-to-jpeg-php



          Thanks






          share|improve this answer
























          • I tried that already but image quality was not good so I am looking for a good option.

            – aditya singh
            Nov 25 '18 at 9:30


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          you can use pdfcrowd API library for it. https://pdfcrowd.com/doc/api/html-to-image/php/



          or you can do it with Html to Jpeg with Php and html2canvas



          https://github.com/erayakartuna/html-to-jpeg-php



          Thanks






          share|improve this answer
























          • I tried that already but image quality was not good so I am looking for a good option.

            – aditya singh
            Nov 25 '18 at 9:30
















          0














          you can use pdfcrowd API library for it. https://pdfcrowd.com/doc/api/html-to-image/php/



          or you can do it with Html to Jpeg with Php and html2canvas



          https://github.com/erayakartuna/html-to-jpeg-php



          Thanks






          share|improve this answer
























          • I tried that already but image quality was not good so I am looking for a good option.

            – aditya singh
            Nov 25 '18 at 9:30














          0












          0








          0







          you can use pdfcrowd API library for it. https://pdfcrowd.com/doc/api/html-to-image/php/



          or you can do it with Html to Jpeg with Php and html2canvas



          https://github.com/erayakartuna/html-to-jpeg-php



          Thanks






          share|improve this answer













          you can use pdfcrowd API library for it. https://pdfcrowd.com/doc/api/html-to-image/php/



          or you can do it with Html to Jpeg with Php and html2canvas



          https://github.com/erayakartuna/html-to-jpeg-php



          Thanks







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 13:37









          Ravi MakwanaRavi Makwana

          1




          1













          • I tried that already but image quality was not good so I am looking for a good option.

            – aditya singh
            Nov 25 '18 at 9:30



















          • I tried that already but image quality was not good so I am looking for a good option.

            – aditya singh
            Nov 25 '18 at 9:30

















          I tried that already but image quality was not good so I am looking for a good option.

          – aditya singh
          Nov 25 '18 at 9:30





          I tried that already but image quality was not good so I am looking for a good option.

          – aditya singh
          Nov 25 '18 at 9:30



          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks