how to convert a html to jpg with same quality [duplicate]
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
php html wordpress
marked as duplicate by Jeto, dingo_d, brasofilo
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.
add a comment |
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
php html wordpress
marked as duplicate by Jeto, dingo_d, brasofilo
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.
add a comment |
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
php html wordpress
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
php html wordpress
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
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
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |